Skip to content

Commit

Permalink
Fixes #98 - Don't try appending None, helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
sean797 committed Apr 19, 2018
1 parent d7f6586 commit ff67ab1
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tracer/resources/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,17 @@ def helpers(self):
In other cases, there will be just one helper in the list.
"""
helpers = []
if not self.helper_contains_formating:
helpers.append(self.helper)
else:
for process in self.affected_instances:
helpers.append(self.helper.format(
NAME=self.name,
PNAME=process.name,
PID=process.pid,
EXE=process.exe,
))
if self.helper:
if not self.helper_contains_formating:
helpers.append(self.helper)
else:
for process in self.affected_instances:
helpers.append(self.helper.format(
NAME=self.name,
PNAME=process.name,
PID=process.pid,
EXE=process.exe,
))
return helpers

@property
Expand Down

0 comments on commit ff67ab1

Please sign in to comment.