Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/collectors/userscripts/userscripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ def collect(self):
(absolutescriptpath, e))
continue
if proc.returncode:
self.log.error("%s return exit value %s; skipping" %
self.log.error("%s return exit value %s" %
(absolutescriptpath, proc.returncode))
if not out:
self.log.info("%s return no output" % absolutescriptpath)
continue
if err:
self.log.error("%s return error output: %s" %
self.log.warning("%s return error output: %s" %
(absolutescriptpath, err))
if not out:
self.log.error("%s returned no output; skipping" % absolutescriptpath)
continue
# Use filter to remove empty lines of output
for line in filter(None, out.split('\n')):
# Ignore invalid lines
Expand Down