Skip to content

Commit ccbd69c

Browse files
authored
GDrive exception handling (again)
1 parent 1a47e6b commit ccbd69c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controllable_talknet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def download_model(model, custom_model):
722722
drive_id = custom_model
723723
else:
724724
drive_id = model
725-
if drive_id == "":
725+
if drive_id == "" or drive_id is None:
726726
return ("Missing Drive ID", None, None)
727727
if not os.path.exists(os.path.join(UPLOAD_DIRECTORY, "models")):
728728
os.mkdir(os.path.join(UPLOAD_DIRECTORY, "models"))

0 commit comments

Comments
 (0)