Better error handling, change of warning():

This commit is contained in:
Jylpah committed 2021-02-28 01:52:43 +02:00
1 parent c640747a0a
commit c8e219ab45
2 files changed
+8 -5

No files matched your search

+6 -3
View File
@@ -2326,9 +2326,12 @@ async def mk_readerQ_item(replay_json, filename : str = None) -> list:
global REPLAY_N
REPLAY_N +=1
try:
if not '_id' in replay_json:
id = wi.read_replay_id(replay_json)
replay_json['_id'] = id
if wi.chk_JSON_replay(replay_json):
if not '_id' in replay_json:
id = wi.read_replay_id(replay_json)
replay_json['_id'] = id
else:
replay_json = None # mark error
except Exception as err:
bu.error(exception=err)
if filename == None: