Improve error handling for auto tagging (#855)

This commit is contained in:
Sascha Ißbrücker
2024-09-24 17:26:01 +02:00
committed by GitHub
parent c93709b549
commit 52400feacf
2 changed files with 17 additions and 0 deletions

View File

@@ -7,6 +7,9 @@ def get_tags(script: str, url: str):
parsed_url = urlparse(url.lower())
result = set()
if not parsed_url.hostname:
return result
for line in script.lower().split("\n"):
if "#" in line:
i = line.index("#")