Skip to content

Commit

Permalink
Fix pyright error in url_rewriting.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Jan 25, 2024
1 parent bb46e14 commit 9903f47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/warc2zim/url_rewriting.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ def normalize(url: str | bytes) -> str:
otherValue")
"youtube.fuzzy.replayweb.page/youtubei/bar?videoId=xxxx"
"""

if not url:
return url # pyright: ignore
return ""

url = to_string(url)

Expand Down

0 comments on commit 9903f47

Please sign in to comment.