Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit 705d95c

Browse files
committed
Merge pull request #17 from alimony/patch-3
Fix TypeError when there was no response body.
2 parents 950af4e + a12bd37 commit 705d95c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FuelSDK/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self, response = None, rest = False):
3737
body = response[1] #and the result in tuple position 1
3838

3939
# Store the Last Request ID for use with continue
40-
if 'RequestID' in body:
40+
if body and 'RequestID' in body:
4141
self.request_id = body['RequestID']
4242

4343
if self.code == 200:

0 commit comments

Comments
 (0)