Skip to content

Commit

Permalink
[sapphire] Improve handling invalid URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Jun 5, 2024
1 parent b3aed93 commit 55b3e62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sapphire/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def parse(cls, raw_data: bytes) -> Optional["Request"]:
if (
"contains invalid characters under NFKC normalization" not in msg
and "Invalid IPv6 URL" not in msg
and "does not appear to be an IPv4 or IPv6 address" not in msg
):
LOG.error("Failed to parse URL: %r", url_str)
raise
Expand Down

0 comments on commit 55b3e62

Please sign in to comment.