From 528be9090dc46f59303194b9f49ff06a00af9d7a Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Sun, 3 Nov 2019 20:29:28 -0500 Subject: [PATCH] catch interactive interupts --- buttond.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buttond.py b/buttond.py index 240a704..72cda37 100755 --- a/buttond.py +++ b/buttond.py @@ -48,4 +48,7 @@ for b in config.get('button', 'names').split(','): continue if __name__ == '__main__': - pause() + try: + pause() + except KeyboardInterrupt: + pass