Raise an error for an unsupported value

This commit is contained in:
tcely authored and GitHub committed 2024-12-09 15:40:16 -05:00
1 parent 2a63e3a360
commit a487e64550
1 file changed
+2
+2
View File
@@ -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 = '''