From 1967f8c66317c05fbd3f9c09750fafaf4916eb30 Mon Sep 17 00:00:00 2001 From: tomer-mamia <125267619+tomerm-iguazio@users.noreply.github.com> Date: Wed, 14 Feb 2024 15:54:48 +0200 Subject: [PATCH] [response] Add defaults to http response error (#117) --- v3io/dataplane/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3io/dataplane/response.py b/v3io/dataplane/response.py index 1219e26..f162ae7 100644 --- a/v3io/dataplane/response.py +++ b/v3io/dataplane/response.py @@ -22,7 +22,7 @@ class HttpResponseError(Exception): """Exception raised on bad http status""" - def __init__(self, message, status_code): + def __init__(self, message="", status_code=None): super().__init__(message) self.status_code = status_code