Skip to content

Commit 736828c

Browse files
committed
skip empty responses
1 parent e4f74ba commit 736828c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

parsons/newmode/newmode.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,11 @@ def converted_request(
427427
client=client,
428428
override_api_version=override_api_version,
429429
)
430-
431-
if convert_to_table:
432-
return client.convert_to_table(data=response)
433-
else:
434-
return response
430+
if response:
431+
if convert_to_table:
432+
return client.convert_to_table(data=response)
433+
else:
434+
return response
435435

436436
def get_campaign(self, campaign_id, params={}):
437437
"""

0 commit comments

Comments
 (0)