Skip to content

Commit

Permalink
Fix response status code equals none in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
averevki committed Jan 15, 2024
1 parent e98d70a commit 7a164aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/httpx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __getattr__(self, item):
"""For backwards compatibility"""
if self.response is not None:
return getattr(self.response, item)
return None
raise self.error

def __str__(self):
if self.error is None:
Expand Down

0 comments on commit 7a164aa

Please sign in to comment.