8000 Fix TypeError when there was no response body. by alimony · Pull Request #17 · salesforce-marketingcloud/FuelSDK-Python · GitHub
[go: up one dir, main page]

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

Fix TypeError when there was no response body. #17

Merged
merged 1 commit into from
Feb 22, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FuelSDK/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, response = None, rest = False):
body = response[1] #and the result in tuple position 1

# Store the Last Request ID for use with continue
if 'RequestID' in body:
if body and 'RequestID' in body:
self.request_id = body['RequestID']

if self.code == 200:
Expand Down
0