Fixed ugly stacktraces. And the associated bugs.

This commit is contained in:
PixelSergey
2015-10-31 19:59:55 +02:00
parent 0ff5e6eaa1
commit 398533860b

View File

@@ -15,8 +15,12 @@
from helpers import *
from traceback import format_exc as trace
global data = None
def safe_open_json():
global data
if data is not None:
return data
data = open_json_file("aliases")
if data is None:
data = {"gnl":{"max_len":"35","max_entries":"10"}}