mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-19 15:25:51 +00:00
raise ValueError if url extraction failes
This commit is contained in:
parent
89c99883c8
commit
2a256bbd06
@ -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})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user