Fix indentation in websearch.py
This commit is contained in:
@@ -136,10 +136,10 @@ def _is_probably_html_url(url: str) -> bool:
|
|||||||
if "." not in path:
|
if "." not in path:
|
||||||
return True
|
return True
|
||||||
ext = path.rsplit(".", 1)[-1]
|
ext = path.rsplit(".", 1)[-1]
|
||||||
return ext not in {
|
return ext not in {
|
||||||
"pdf","jpg","jpeg","png","gif","webp","svg","mp4","mp3","mov","avi",
|
"pdf","jpg","jpeg","png","gif","webp","svg","mp4","mp3","mov","avi",
|
||||||
"zip","gz","7z","tar","rar","woff","woff2","ttf","otf"
|
"zip","gz","7z","tar","rar","woff","woff2","ttf","otf"
|
||||||
}
|
}
|
||||||
except Exception:
|
except Exception:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user