Skip to content

Commit 599b27e

Browse files
authored
Replace default null variables with empty object to fix 400 error from API when variables are not set explicitly, release 0.23.4
1 parent b21fb66 commit 599b27e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bigcommerce/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def __init__(self, client_id, store_hash, access_token=None, host='api.bigcommer
310310

311311
self.rate_limit = {}
312312

313-
def query(self, query, variables=None):
313+
def query(self, query, variables={}):
314314
return self.post(self.graphql_path, dict(query=query, variables=variables))
315315

316316
def introspection_query(self):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def read(fname):
77
return open(os.path.join(os.path.dirname(__file__), fname)).read()
88

99

10-
VERSION = '0.23.3'
10+
VERSION = '0.23.4'
1111

1212
setup(
1313
name='bigcommerce',

0 commit comments

Comments
 (0)