From 60cc678470f2a3a798576ad071b292a41f75863e Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 7 Jan 2015 01:35:26 +0100 Subject: [PATCH] show traceback on error --- check.py | 2 ++ 1 file changed, 2 insertions(+) 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")