mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-05 14:43:41 +01:00
I lint, therefore I am
Implement fixes for the most recent pylint version.
This commit is contained in:
committed by
Marc Bonnici
parent
0e0d4e0ff0
commit
c410d2e1a1
wa
@ -193,7 +193,7 @@ def log_error(e, logger, critical=False):
|
||||
old_level = set_indent_level(0)
|
||||
logger.info('Got CTRL-C. Aborting.')
|
||||
set_indent_level(old_level)
|
||||
elif isinstance(e, WAError) or isinstance(e, DevlibError):
|
||||
elif isinstance(e, (WAError, DevlibError)):
|
||||
log_func(str(e))
|
||||
elif isinstance(e, subprocess.CalledProcessError):
|
||||
tb = get_traceback()
|
||||
|
Reference in New Issue
Block a user