From f6e4bcfcba9a5c3a5be62c5cac24ca68f6620164 Mon Sep 17 00:00:00 2001 From: A_D Date: Fri, 24 Sep 2021 17:13:00 +0200 Subject: [PATCH] importing things before you use them is helpful. --- EDMarketConnector.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 675806f6..21edf222 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -1893,16 +1893,16 @@ sys.path: {sys.path}''' else: log_locale('After switching to UTF-8 encoding (same language)') - # Do this after locale silliness, just in case - if args.forget_frontier_auth: - logger.info("Dropping all fdev tokens as --forget-frontier-auth was passed") - companion.Auth.invalidate(None) - # HACK: n/a | 2021-11-24: --force-localserver-auth does not work if companion is imported early -cont. # HACK: n/a | 2021-11-24: as we modify config before this is used. import companion from companion import CAPIData, index_possibly_sparse_list + # Do this after locale silliness, just in case + if args.forget_frontier_auth: + logger.info("Dropping all fdev tokens as --forget-frontier-auth was passed") + companion.Auth.invalidate(None) + # TODO: unittests in place of these # logger.debug('Test from __main__') # test_logging()