From dd224f42f6e89b772d31a92d8560cffcd1aa4b6c Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 5 Oct 2011 17:45:32 +0200 Subject: [PATCH] client-barcode: Handle KeyboardInterrupt --- client-barcode/freitagskasse.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index d0995bc..1da2f05 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -210,4 +210,7 @@ def main(): if __name__ == '__main__': - main() + try: + main() + except KeyboardInterrupt: + pass