Skip to content

Commit

Permalink
Merge pull request #17 from CybercentreCanada/rewrite
Browse files Browse the repository at this point in the history
Converting exceptions to logs [dev]
  • Loading branch information
cccs-kevin authored Feb 22, 2023
2 parents 9174d4f + 8a3f826 commit 99890a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avclass_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ def _load_rules(self) -> None:
f"No valid {self.name} 'malpedia.json' file found at {rules[0]}"
)
else:
raise Exception(
self.log.error(
"AVClass didn't process the Malpedia file. Check if the service can reach the updater."
)
except Exception as e:
raise Exception(
self.log.error(
f"No valid {self.name} 'malpedia.json' file found. Reason: {e}"
)

0 comments on commit 99890a6

Please sign in to comment.