Skip to content

Commit

Permalink
refactor: dont use bare except
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Sep 2, 2023
1 parent 203776b commit f8c831c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dooit/utils/date_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 9,5 @@ def parse(value: str) -> Tuple[Optional[datetime], bool]:
DAY_FIRST = config_man.get("USE_DAY_FIRST")
try:
return parser.parse(value, dayfirst=DAY_FIRST), True
except:
except parser.ParserError:
return None, False

0 comments on commit f8c831c

Please sign in to comment.