diff --git a/dhlmex/resources/guides.py b/dhlmex/resources/guides.py index 24156ed..96fa1b2 100644 --- a/dhlmex/resources/guides.py +++ b/dhlmex/resources/guides.py @@ -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 = { diff --git a/dhlmex/version.py b/dhlmex/version.py index 971fbc4..4a197ec 100644 --- a/dhlmex/version.py +++ b/dhlmex/version.py @@ -1 +1 @@ -__version__ = '0.0.4' # pragma: no cover +__version__ = '0.0.5' # pragma: no cover