Skip to content

Commit 6b4b338

Browse files
author
Aliaksei Piatrouski
committed
Make req and res optional in HTTPError
1 parent 0ab6370 commit 6b4b338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiogoogle/excs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ValidationError(AiogoogleError):
2020

2121

2222
class HTTPError(AiogoogleError):
23-
def __init__(self, msg, req, res: Response):
23+
def __init__(self, msg, req=None, res: Response | None = None):
2424
self.req = req
2525
self.res = res
2626
super().__init__(msg)

0 commit comments

Comments
 (0)