Skip to content

Commit f977bd3

Browse files
author
Sebastien.Dangelo
committed
Fix Async call
1 parent 0225a2d commit f977bd3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

FuelSDKWrapper.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,12 @@ def run_async_call(self, endpoint, method, payload):
513513
while status == 'Pending':
514514
r = requests.get(endpoint, headers=headers)
515515
if r.status_code in range(200, 300):
516-
status = r.json()["status"]["requestStatus"]
516+
try:
517+
status = r.json()["status"]["requestStatus"]
518+
except KeyError:
519+
status = "Error"
520+
else:
521+
status = "Error"
517522
return r
518523

519524
def create_data_extension_rows(self, data_extension_key, keys_list, values_list):

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
__title__ = 'FuelSDKWrapper'
2-
__version__ = '1.2.2'
2+
__version__ = '1.2.3'
33
__author__ = 'Seb Angel'
44
__license__ = 'MIT'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
readme = f.read()
55

66
setup(
7-
version='1.2.2',
7+
version='1.2.3',
88
name='FuelSDKWrapper',
99
description='Simplify and enhance the FuelSDK for Salesforce Marketing Cloud (ExactTarget)',
1010
long_description=readme,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy