Skip to content

Commit

Permalink
simplified returning stats
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnzZ committed Jan 17, 2024
1 parent 24b5446 commit 28cfb08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web_poet/page_inputs/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def text(self) -> str:
@property
def status(self) -> Optional[int]:
"""The int status code of the HTTP response, if available."""
if getattr(self.response, "status", None):
return self.response.status
return None
return self.response.status

def _selector_input(self) -> str:
return self.text

0 comments on commit 28cfb08

Please sign in to comment.