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

Commit a12bd37

Browse files
author
Markus Amalthea Magnuson
committed
Fix TypeError when there was no response body.
1 parent 950af4e commit a12bd37

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)