summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-11-25 22:03:49 +0100
committeremkael <emkael@tlen.pl>2016-11-25 22:10:37 +0100
commit28ce1bfbff9a738b33409df0e575985f6f1b3ce2 (patch)
tree4d6d5add02ab43eb7a3316395c9cb481dcf3761b
parent2ee4dc85051ebb01a88ffd49ed513b65ccc651c8 (diff)
Global error handling
-rw-r--r--quick_lineup.py5
1 files changed, 4 insertions, 1 deletions
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])