From 08b407674df01dc700a4f8e16c05b625e34766b5 Mon Sep 17 00:00:00 2001 From: alarv Date: Tue, 5 Nov 2024 10:40:58 +0200 Subject: [PATCH] fix: make status_code default None --- jaqpotpy/exceptions/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jaqpotpy/exceptions/exceptions.py b/jaqpotpy/exceptions/exceptions.py index fc561bfa..268156c2 100644 --- a/jaqpotpy/exceptions/exceptions.py +++ b/jaqpotpy/exceptions/exceptions.py @@ -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