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

Catch Exception from JSONDecodeError #127

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
12 changes: 8 additions & 4 deletions FuelSDK/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,14 @@ def create_payload(self):

def get_soap_cache_file(self):
json_data = {}
if os.path.isfile(self.soap_cache_file):
file = open(self.soap_cache_file, "r")
json_data = json.load(file)
file.close()

try:
if os.path.isfile(self.soap_cache_file):
file = open(self.soap_cache_file, "r")
json_data = json.load(file)
file.close()
except Exception:
return json_data

return json_data

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FuelSDK-Python v1.3.0

Salesforce Marketing Cloud Fuel SDK for Python
Feverup's fork of Salesforce Marketing Cloud Fuel SDK for Python

## Overview

Expand Down
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
readme = f.read()

setup(
version='1.3.0',
name='Salesforce-FuelSDK',
description='Salesforce Marketing Cloud Fuel SDK for Python',
version='1.3.1',
name='Fever-FuelSDK',
description='Fever Salesforce Marketing Cloud Fuel SDK for Python',
long_description=readme,
long_description_content_type="text/markdown",
author='ExactTarget',
author='Feverup',
py_modules=['ET_Client'],
packages=['FuelSDK'],
url='https://github.com/salesforce-marketingcloud/FuelSDK-Python',
url='https://github.com/Feverup/FuelSDK-Python',
license='MIT',
install_requires=[
'pyjwt>=1.5.3',
Expand All @@ -27,4 +27,4 @@
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 3.3',
],
)
)