From 2a256bbd061efdc454254aa66aa403514c2878a9 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 15 Sep 2021 17:25:18 +0700 Subject: [PATCH] raise ValueError if url extraction failes --- tubearchivist/home/src/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/helper.py b/tubearchivist/home/src/helper.py index 900722e..5f9ffc1 100644 --- a/tubearchivist/home/src/helper.py +++ b/tubearchivist/home/src/helper.py @@ -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})