Skip to content

Commit

Permalink
fix bare except error
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelDkhn committed Mar 14, 2024
1 parent 058cc12 commit 4a4b156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion giza_actions/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def _set_session(self, model_id: int):

return ort.InferenceSession(onnx_model)

except:
except Exception as e:
print(f"Could not download model: {e}")
return None

def _download_model(self, model_id: int, output_path: str):
Expand Down

0 comments on commit 4a4b156

Please sign in to comment.