From 06392c9a3d6ea3b7db139a992ecacd34fcd2bc1a Mon Sep 17 00:00:00 2001 From: "kuldeep.k@cisinlabs.com" Date: Tue, 28 Sep 2021 18:08:27 +0530 Subject: [PATCH] Reverted try/except from read method --- src/helper_startup.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/helper_startup.py b/src/helper_startup.py index 9fa4f261..b4951668 100644 --- a/src/helper_startup.py +++ b/src/helper_startup.py @@ -49,11 +49,7 @@ def loadConfig(): 'Loading config files from directory specified' ' on startup: %s', state.appdata) else: - try: - config.read(paths.lookupExeFolder() + 'keys.dat') - except: # noqa:E722 - logger.info( - 'Permission error in BMConfigParser().read() method for keys.dat file') + config.read(paths.lookupExeFolder() + 'keys.dat') if config.safeGet('bitmessagesettings', 'settingsversion'): logger.info('Loading config files from same directory as program.')