raise ValueError if url extraction failes

This commit is contained in:
simon 2021-09-15 17:25:18 +07:00
parent 89c99883c8
commit 2a256bbd06

View File

@ -59,7 +59,7 @@ def process_url_list(url_str):
link_type = 'playlist'
else:
# unable to parse
return False
raise ValueError('not a valid url: ' + url)
youtube_ids.append({"url": url_no_param, "type": link_type})