Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c46a51d

Browse files
authored
Merge pull request ej2#59 from porn/master
Fix downloading PDFs in python3
2 parents df05967 + 7f6fdd6 commit c46a51d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickbooks/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def download_pdf(self, qbbo, item_id):
361361

362362
response = self.session.request("GET", url, True, self.company_id, headers=headers)
363363

364-
if response.status_code is not httplib.OK:
364+
if response.status_code != httplib.OK:
365365
try:
366366
json = response.json()
367367
except:

0 commit comments

Comments
 (0)