mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-30 03:42:15 +03:00
Log individual event errors
This commit is contained in:
1 parent
1a2b16a7b3
commit
4e674f85d5
1 file changed
+7
-7
+7
-7
@@ -310,14 +310,14 @@ def worker():
|
||||
if msgnum // 100 == 2:
|
||||
print('EDSM\t%s %s\t%s' % (msgnum, msg, json.dumps(pending, separators = (',', ': '))))
|
||||
plug.show_error(_('Error: EDSM {MSG}').format(MSG=msg))
|
||||
elif not closing:
|
||||
# Update main window's system status
|
||||
for i in range(len(pending) - 1, -1, -1):
|
||||
if pending[i]['event'] in ['StartUp', 'Location', 'FSDJump']:
|
||||
this.lastlookup = reply['events'][i]
|
||||
else:
|
||||
for e, r in zip(pending, reply):
|
||||
if not closing and e['event'] in ['StartUp', 'Location', 'FSDJump']:
|
||||
# Update main window's system status
|
||||
this.lastlookup = r
|
||||
this.system.event_generate('<<EDSMStatus>>', when="tail") # calls update_status in main thread
|
||||
break
|
||||
|
||||
elif r['msgnum'] // 100 != 1:
|
||||
print('EDSM\t%s %s\t%s' % (r['msgnum'], r['msg'], json.dumps(e, separators = (',', ': '))))
|
||||
pending = []
|
||||
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user