Skip to content
5 changes: 4 additions & 1 deletion bigcommerce/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ def _run_method(self, method, url, data=None, query=None, headers=None):

# Support v3
if self.api_path and 'v3' in self.api_path:
url = 'catalog/{}'.format(url)
if url is 'orders':
Copy link
Copy Markdown

@ThePsyjo ThePsyjo Oct 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will never be True, use == instead of is.

self.api_path = self.api_path.replace('v3', 'v2')
else:
url = 'catalog/{}'.format(url)

# make full path if not given
if url and url[:4] != "http":
Expand Down