Reverted try/except from read method

This commit is contained in:
kuldeep.k@cisinlabs.com 2021-09-28 18:08:27 +05:30
parent 3555f1d426
commit 06392c9a3d
No known key found for this signature in database
GPG Key ID: AF4FB299BF7C7C2A

View File

@ -49,11 +49,7 @@ def loadConfig():
'Loading config files from directory specified' 'Loading config files from directory specified'
' on startup: %s', state.appdata) ' on startup: %s', state.appdata)
else: else:
try: config.read(paths.lookupExeFolder() + 'keys.dat')
config.read(paths.lookupExeFolder() + 'keys.dat')
except: # noqa:E722
logger.info(
'Permission error in BMConfigParser().read() method for keys.dat file')
if config.safeGet('bitmessagesettings', 'settingsversion'): if config.safeGet('bitmessagesettings', 'settingsversion'):
logger.info('Loading config files from same directory as program.') logger.info('Loading config files from same directory as program.')