Skip to content

Commit

Permalink
fix: make status_code default None
Browse files Browse the repository at this point in the history
  • Loading branch information
alarv committed Nov 5, 2024
1 parent ae55ae4 commit 08b4076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaqpotpy/exceptions/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class JaqpotApiException(Exception):
"""Base exception class for Jaqpot API-related errors."""

def __init__(self, message, status_code):
def __init__(self, message, status_code=None):
super().__init__(f"Error {status_code}: {message}")
self.message = message
self.status_code = status_code
Expand Down

0 comments on commit 08b4076

Please sign in to comment.