Skip to content

Commit

Permalink
Remove redundant return and update version
Browse files Browse the repository at this point in the history
  • Loading branch information
agarrido19 committed Feb 5, 2020
1 parent c311634 commit 9011b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dhlmex/resources/guides.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ def _fill_guide_table(

def _validate_data(self, fill_data: Dict) -> str:
resp = self._client.post(self._urls['capture'], fill_data)
msg = ''
if 'messageError' in resp.text:
soup = BeautifulSoup(resp.text, features='html.parser')
msg = soup.find('span', {'class': 'rich-messages-label'}).text
return msg
return ''
return msg

def _confirm_capture(self, view_state: str) -> Response:
confirm_data = {
Expand Down
2 changes: 1 addition & 1 deletion dhlmex/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.4' # pragma: no cover
__version__ = '0.0.5' # pragma: no cover

0 comments on commit 9011b59

Please sign in to comment.