We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff8d3a2 commit fd935c9Copy full SHA for fd935c9
1 file changed
src/sumo/wrapper/decorators.py
@@ -4,7 +4,12 @@
4
5
def raise_for_status(func):
6
def wrapper(*args, **kwargs):
7
- return func(*args, **kwargs).raise_for_status()
+ # FIXME: in newer versions of httpx, raise_for_status() is chainable,
8
+ # so we could simply write
9
+ # return func(*args, **kwargs).raise_for_status()
10
+ response = func(*args, **kwargs)
11
+ response.raise_for_status()
12
+ return response
13
14
return wrapper
15
0 commit comments