Skip to content

Commit

Permalink
Merge pull request #951 from gavishpoddar/patch
Browse files Browse the repository at this point in the history
removing redundant parenthesis
  • Loading branch information
lopuhin authored Jul 26, 2021
2 parents 803d445 + 81f6859 commit ad50964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dateparser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def _get_datetime_obj(self, **params):
except ValueError as e:
error_text = e.__str__()
error_msgs = ['day is out of range', 'day must be in']
if (error_msgs[0] in error_text or error_msgs[1] in error_text):
if error_msgs[0] in error_text or error_msgs[1] in error_text:
if not(self._token_day or hasattr(self, '_token_weekday')):
# if day is not available put last day of the month
params['day'] = get_last_day_of_month(params['year'], params['month'])
Expand Down

0 comments on commit ad50964

Please sign in to comment.