Skip to content

Commit 4a66300

Browse files
committed
Updated exception code in download_pdf.
1 parent de6a247 commit 4a66300

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ Changelog
22
=========
33

44
* 0.7.5 (October 18th, 2018)
5-
* Fixed bug with reporting authentication failure when attempting to download PDF (previously the error details were "lost")
6-
* Added refresh_access_tokens to Oauth2SessionManager
5+
* Fixed bug with reporting authentication failure when attempting to download PDF (previously the error details were "lost").
6+
* Added refresh_access_tokens to Oauth2SessionManager.
77
* Added missing LinkedTxn to Bill object.
8-
*
8+
* Added validate_webhook_signature method on client to validate incoming webhooks.
9+
* Improved exception handling.
910

1011
* 0.7.4 (March 26th, 2018)
1112
* Fixed bug in SendMixin send method.

quickbooks/client.py

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

355355
if response.status_code == httplib.UNAUTHORIZED:
356356
# Note that auth errors have different result structure which can't be parsed by handle_exceptions()
357-
raise AuthorizationException("Application authentication failed", detail=response.text)
357+
raise exceptions.AuthorizationException("Application authentication failed", detail=response.text)
358358

359359
try:
360360
result = response.json()

0 commit comments

Comments
 (0)