Skip to content

Commit

Permalink
chore: add debug message on URL validation fn
Browse files Browse the repository at this point in the history
  • Loading branch information
kikkomep committed Nov 28, 2023
1 parent 8aa7e28 commit 84a59f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lifemonitor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ def validate_url(url: str) -> bool:
try:
result = urllib.parse.urlparse(url)
return all([result.scheme, result.netloc])
except Exception:
except Exception as e:
if logger.isEnabledFor(logging.DEBUG):
logger.exception(e)
return False


Expand Down

0 comments on commit 84a59f6

Please sign in to comment.