From a487e64550282d7d704824ace1fd3af87aeb9b5a Mon Sep 17 00:00:00 2001 From: tcely Date: Mon, 9 Dec 2024 15:40:16 -0500 Subject: [PATCH] Raise an error for an unsupported value --- tubesync/tubesync/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tubesync/tubesync/settings.py b/tubesync/tubesync/settings.py index 5eb7a8dc..1fd8499c 100644 --- a/tubesync/tubesync/settings.py +++ b/tubesync/tubesync/settings.py @@ -120,6 +120,8 @@ elif directory_mode.startswith('custom:'): custom_value = directory_mode.split(':', maxsplit=1)[1] if ',' in custom_value: DOWNLOAD_AUDIO_DIR, DOWNLOAD_VIDEO_DIR = custom_value.split(',', maxsplit=1) +elif directory_mode not in ('', 'default'): + raise ValueError(f"Unsupported TUBESYNC_DIRECTORY_MODE: {directory_mode}") ROBOTS = '''