mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-24 11:39:52 +02:00
Better error handling, change of warning():
This commit is contained in:
1 parent
c640747a0a
commit
c8e219ab45
2 files changed
+8
-5
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user