mirror of
https://github.com/openkmip/pykmip
synced 2025-12-15 15:53:36 +00:00
Fixing violations of E722 for flake8 checks
This change fixes violations of E722, the use of except without specifying an exception type. For now the high-level Exception class is used as a generic catchall. In the future these cases will be updated to handle the specific exceptions expected.
This commit is contained in:
@@ -83,7 +83,7 @@ class ConfigHelper(object):
|
||||
self.logger.debug(CONF_MSG.format(return_value,
|
||||
CONFIG_FILE,
|
||||
config_option_name))
|
||||
except:
|
||||
except Exception:
|
||||
return_value = default_value
|
||||
self.logger.debug(DEFAULT_MSG.format(default_value,
|
||||
config_option_name))
|
||||
|
||||
Reference in New Issue
Block a user