Raise an error for an unsupported value
This commit is contained in:
1 parent
2a63e3a360
commit
a487e64550
1 file changed
+2
@@ -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 = '''
|
||||
|
||||
Reference in new issue
Block a user