1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-26 07:02:38 +01:00

I lint, therefore I am

Implement fixes for the most recent pylint version.
This commit is contained in:
Sergei Trofimov
2018-07-09 15:28:22 +01:00
committed by Marc Bonnici
parent 0e0d4e0ff0
commit c410d2e1a1
22 changed files with 53 additions and 51 deletions

View File

@@ -72,10 +72,9 @@ class LogcatParser(object):
tid = int(parts.pop(0))
level = LogcatLogLevel.levels[log_level_map.index(parts.pop(0))]
tag = (parts.pop(0) if parts else '').strip()
except Exception as e:
except Exception as e: # pylint: disable=broad-except
message = 'Invalid metadata for line:\n\t{}\n\tgot: "{}"'
logger.warning(message.format(line, e))
return None
return LogcatEvent(timestamp, pid, tid, level, tag, message)