+ when bot fail then send mail

This commit is contained in:
urinx
2017-05-25 16:21:48 +08:00
parent 97f347b8f8
commit 123993c3cc
9 changed files with 70 additions and 14 deletions
+6
View File
@@ -231,6 +231,12 @@ def save_json(filename, data, dirName, mode='w+'):
return fn
def load_json(filepath):
Log.debug('load json: ' + filepath)
with open(filepath, 'r') as f:
return _decode_data(json.loads(f.read()))
def pickle_save(data, file):
"""
@brief Use pickle to save python object into file