mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-25 05:00:16 +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