We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ecc891 + 65c9d57 commit 2b9ef4fCopy full SHA for 2b9ef4f
linter.py
@@ -44,10 +44,14 @@ def find_errors(self, output):
44
logger.error(output)
45
return
46
47
+ # SL core concats STDOUT and STDERR. The json we're after is
48
+ # on STDOUT. `lstrip` here is defensive.
49
+ stdout = output.lstrip().splitlines()[0]
50
+
51
try:
- content = json.loads(output)
52
+ content = json.loads(stdout)
53
except ValueError:
- logger.error(output)
54
+ logger.error(output) # still log complete output!
55
56
57
if logger.isEnabledFor(logging.INFO):
0 commit comments