flake8: apply all rest E7 rules

This commit is contained in:
Yuming Zhu 2020-02-26 04:49:48 +08:00
parent 6ed30954b2
commit f1ba6cefd7
24 changed files with 112 additions and 127 deletions

View file

@ -199,7 +199,7 @@ def run_callbacks(cbtype, *args, **kws):
cb_args, cb_kwargs = _fix_cb_args(func, args, kws, cache)
try:
func(cbtype, *cb_args, **cb_kwargs)
except:
except BaseException:
msg = 'Error running %s callback from %s' % (cbtype, func.__module__)
if getattr(func, 'failure_is_an_option', False):
logging.getLogger('koji.plugin').warn(msg, exc_info=True)