From 28ce1bfbff9a738b33409df0e575985f6f1b3ce2 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 25 Nov 2016 22:03:49 +0100 Subject: Global error handling --- quick_lineup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quick_lineup.py b/quick_lineup.py index c63aad1..237bc19 100644 --- a/quick_lineup.py +++ b/quick_lineup.py @@ -13,4 +13,7 @@ if len(sys.argv) == 4: else: table = None -Console(round, segment, table).run() +try: + Console(round, segment, table).run() +except: + print('ERROR: %s' % sys.exc_info()[1]) -- cgit v1.2.3