Skip to content

Commit

Permalink
Added Request.status_code :raise: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rbw committed Apr 4, 2017
1 parent 24cabf6 commit 98102aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pysnow.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ def __init__(self, method, table, **kwargs):
@property
def last_response(self):
"""Return _last_response after making sure an inner `requests.request` has been performed
:raise:
:NoRequestExecuted: If no request has been executed
:return: last response
Expand All @@ -358,6 +359,8 @@ def last_response(self, response):
def status_code(self):
"""Return last_response.status_code after making sure an inner `requests.request` has been performed
:raise:
:NoRequestExecuted: If no request has been executed
:return: status_code of last_response
"""
if self.last_response is None:
Expand Down

0 comments on commit 98102aa

Please sign in to comment.