Skip to content

Commit

Permalink
fix report not defined bug issue #351
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Feb 15, 2023
1 parent 6601cd4 commit 90fca55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eNMS/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ def start_run(self):
if self.update_pools_after_running:
for pool in db.fetch_all("pool"):
pool.compute_pool()
if self.service.report:
report = self.generate_report(results)
report = self.generate_report(results) if self.service.report else ""
if self.get("send_notification"):
try:
results = self.notify(results, report)
Expand Down

0 comments on commit 90fca55

Please sign in to comment.