1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

suppressed exceptions in migration code

This commit is contained in:
A_D 2020-12-24 12:55:47 +02:00 committed by Athanasius
parent a6f3d4a382
commit 87df8d8ab8
2 changed files with 5 additions and 5 deletions

View File

@ -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(_):

View File

@ -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')