Fixing some violations to assuage pylint and get a bit of overhead

This commit is contained in:
bmedx
2018-01-18 16:11:38 -05:00
parent 1d45c85135
commit 40951a28cf
17 changed files with 42 additions and 53 deletions

View File

@@ -37,7 +37,7 @@ def timed(wrapped, instance, args, kwargs): # pylint: disable=unused-argument
exception_info = {}
try:
return wrapped(*args, **kwargs)
except Exception as exc: # pylint: disable=broad-except
except Exception as exc:
exception_info = {
'exception': "".join(traceback.format_exception_only(type(exc), exc)).strip()
}