Fail silently if EDSM Cmdr blank

This commit is contained in:
Jonathan Harris committed 2017-01-23 01:51:03 +00:00
1 parent 94db336aa6
commit 445786a06f
1 file changed
+1 -1
+1 -1
View File
@@ -573,7 +573,7 @@ class AppWindow:
self.w.update_idletasks()
# Send interesting events to EDSM
if config.getint('output') & config.OUT_SYS_EDSM and not monitor.is_beta:
if config.getint('output') & config.OUT_SYS_EDSM and not monitor.is_beta and config.get('cmdrs') and monitor.cmdr in config.get('cmdrs') and config.get('edsm_usernames')[config.get('cmdrs').index(monitor.cmdr)]:
self.status['text'] = _('Sending data to EDSM...')
self.w.update_idletasks()
try: