Skip to content

Commit

Permalink
Don't use Recoverable Error
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-kevin committed Sep 24, 2020
1 parent ff9f9ff commit 431e981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadefender.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def scan_file(self, filename: str):
self.nodes[self.current_node]['timeout_count'] = 0
self.nodes[self.current_node]['timeout'] = 0
else:
raise RecoverableError(f"Unable to scan file due to {r.json()['err']}")
raise Exception(f"Unable to scan file due to {r.json()['err']}")
return r.json()

def parse_results(self, response: Dict[str, Any]):
Expand Down

0 comments on commit 431e981

Please sign in to comment.