Skip to content

Commit

Permalink
Really improve coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
agarrido19 committed Jan 27, 2020
1 parent f62e80d commit 2feb334
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dhlmex/resources/guides.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2feb334

Please sign in to comment.