Commit 8f703d7 1 parent 77e1cae commit 8f703d7 Copy full SHA for 8f703d7
File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,13 @@ def Kapowarr() -> int:
187
187
db_folder = db_folder
188
188
)
189
189
190
- except ValueError :
191
- parser .error ("The value for -d/--DatabaseFolder is not a folder" )
190
+ except ValueError as e :
191
+ if e .args and e .args [0 ] == 'Database location is not a folder' :
192
+ parser .error (
193
+ "The value for -d/--DatabaseFolder is not a folder"
194
+ )
195
+ else :
196
+ raise e
192
197
193
198
else :
194
199
rc = Kapowarr ()
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def set_db_location(
169
169
170
170
if db_folder :
171
171
if exists (db_folder ) and not isdir (db_folder ):
172
- raise ValueError
172
+ raise ValueError ( 'Database location is not a folder' )
173
173
174
174
db_file_location = join (
175
175
db_folder or folder_path (* Constants .DB_FOLDER ),
You can’t perform that action at this time.
0 commit comments