[fix] no catchall exception

This commit is contained in:
Laurent Peuch 2020-12-31 23:44:23 +01:00
parent 8566eaaa1f
commit 2caf1234e8

View file

@ -371,7 +371,7 @@ class _CallbackAction(argparse.Action):
try:
# Execute callback and get returned value
value = self.callback(namespace, values, **self.callback_kwargs)
except:
except Exception:
logger.exception(
"cannot get value from callback method "
"'{0}'".format(self.callback_method)