Skip to content

Commit

Permalink
Catch all for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-kevin committed Sep 24, 2020
1 parent 89182d5 commit ff9f9ff
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 @@ -291,7 +291,7 @@ def scan_file(self, filename: str):

self.nodes[self.current_node]['timeout_count'] = 0
self.nodes[self.current_node]['timeout'] = 0
elif r.status_code == requests.codes.bad:
else:
raise RecoverableError(f"Unable to scan file due to {r.json()['err']}")
return r.json()

Expand Down

0 comments on commit ff9f9ff

Please sign in to comment.