From 5ceeb7930d393471cf73ad4cb348af41a0dc330f Mon Sep 17 00:00:00 2001 From: imacatburyme <83498848+imacatburyme@users.noreply.github.com> Date: Sat, 1 May 2021 17:17:12 +0530 Subject: [PATCH] keyboardInterupt should stop the program --- detect-spotify.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/detect-spotify.py b/detect-spotify.py index ec80b15..d2b1bb7 100644 --- a/detect-spotify.py +++ b/detect-spotify.py @@ -63,5 +63,9 @@ def main(): try: main() + + except KeyboardInterrupt: + quit() + except: print('oops there was an error, refer to README or start a song if there isn\'t one playing.')