From b1be92f1a94f783eedeeb71813c0d363b7dacaed Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 21 Jun 2014 11:09:10 +0200 Subject: [PATCH] catch java exceptions, too --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 20db09a..1481ffa 100644 --- a/main.py +++ b/main.py @@ -11,8 +11,9 @@ sys.path += ['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/l try: from helpers import * -except Exception, e: - print("[RedstonerUtils] ERROR: Failed to import helpers: %s" % e) +except: + print("[RedstonerUtils] ERROR: Failed to import helpers:") + print(print_traceback())