Archived
Fixed ugly stacktraces. And the associated bugs.
This commit is contained in:
@@ -15,8 +15,12 @@
|
|||||||
from helpers import *
|
from helpers import *
|
||||||
from traceback import format_exc as trace
|
from traceback import format_exc as trace
|
||||||
|
|
||||||
|
global data = None
|
||||||
|
|
||||||
def safe_open_json():
|
def safe_open_json():
|
||||||
|
global data
|
||||||
|
if data is not None:
|
||||||
|
return data
|
||||||
data = open_json_file("aliases")
|
data = open_json_file("aliases")
|
||||||
if data is None:
|
if data is None:
|
||||||
data = {"gnl":{"max_len":"35","max_entries":"10"}}
|
data = {"gnl":{"max_len":"35","max_entries":"10"}}
|
||||||
|
|||||||
Reference in New Issue
Block a user