From 2feb334d6030a9686823e9ce9c0bda09777fbe35 Mon Sep 17 00:00:00 2001 From: alan Date: Mon, 27 Jan 2020 13:31:51 -0600 Subject: [PATCH] Really improve coveralls --- dhlmex/resources/guides.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dhlmex/resources/guides.py b/dhlmex/resources/guides.py index 3816865..0953a6b 100644 --- a/dhlmex/resources/guides.py +++ b/dhlmex/resources/guides.py @@ -26,11 +26,10 @@ def create_guide( view_state = guide._fill_guide_table( origin, destination, details ) - resp = guide._confirm_capture(view_state) - if resp.ok: - guide_number = guide._force_percent(view_state) - guide_bytes = guide._download_pdf(guide_number) - return guide_number, guide_bytes + guide._confirm_capture(view_state) + guide_number = guide._force_percent(view_state) + guide_bytes = guide._download_pdf(guide_number) + return guide_number, guide_bytes else: raise DhlmexException('No available guides') except HTTPError as httpe: