summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2015-01-07 01:35:26 +0100
committerjomo <github@jomo.tv>2015-01-07 01:35:26 +0100
commit60cc678470f2a3a798576ad071b292a41f75863e (patch)
tree9083af11a37fa54464db9fd2297b0798d178b478 /check.py
parent9230a048afcc148d778a20a0eb1a26de426e978e (diff)
show traceback on error
Diffstat (limited to 'check.py')
-rw-r--r--check.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/check.py b/check.py
index a1eb9e4..05f78d8 100644
--- a/check.py
+++ b/check.py
@@ -2,6 +2,7 @@ import json
import urllib2
import datetime
import mysqlhack #pylint: disable = unused-import
+from traceback import format_exc as print_traceback
from com.ziclix.python.sql import zxJDBC
from secrets import *
from helpers import *
@@ -80,6 +81,7 @@ def get_all_data(sender, player):
msg(sender, "&6> All ingame names used so far: &e%s" % get_all_names(player))
except:
# can throw exceptions such as timeouts when Mojang API is down
+ warn(print_traceback())
msg(sender, "&cSorry, something went wrong while fetching data")