mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-22 03:06:59 +03:00
suppressed exceptions in migration code
This commit is contained in:
1 parent
a6f3d4a382
commit
87df8d8ab8
2 files changed
+5
-5
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ from config import config
|
||||
if not config.get_str('shipyard_provider') and config.get_int('shipyard'):
|
||||
config.set('shipyard_provider', 'Coriolis')
|
||||
|
||||
config.delete('shipyard')
|
||||
config.delete('shipyard', suppress=True)
|
||||
|
||||
|
||||
def plugin_start3(_):
|
||||
|
||||
+4
-4
@@ -134,15 +134,15 @@ def plugin_start3(plugin_dir: str) -> str:
|
||||
config.set('edsm_usernames', [config.get_str('edsm_cmdrname', default='')])
|
||||
config.set('edsm_apikeys', [config.get_str('edsm_apikey', default='')])
|
||||
|
||||
config.delete('edsm_cmdrname')
|
||||
config.delete('edsm_apikey')
|
||||
config.delete('edsm_cmdrname', suppress=True)
|
||||
config.delete('edsm_apikey', suppress=True)
|
||||
|
||||
if config.get_int('output') & 256:
|
||||
# Migrate <= 2.34 setting
|
||||
config.set('edsm_out', 1)
|
||||
|
||||
config.delete('edsm_autoopen')
|
||||
config.delete('edsm_historical')
|
||||
config.delete('edsm_autoopen', suppress=True)
|
||||
config.delete('edsm_historical', suppress=True)
|
||||
|
||||
logger.debug('Starting worker thread...')
|
||||
this.thread = Thread(target=worker, name='EDSM worker')
|
||||
|
||||
Reference in new issue
Block a user