Skip to content

Commit

Permalink
GDrive exception handling (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
SortAnon authored Jul 23, 2021
1 parent 1a47e6b commit ccbd69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllable_talknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ def download_model(model, custom_model):
drive_id = custom_model
else:
drive_id = model
if drive_id == "":
if drive_id == "" or drive_id is None:
return ("Missing Drive ID", None, None)
if not os.path.exists(os.path.join(UPLOAD_DIRECTORY, "models")):
os.mkdir(os.path.join(UPLOAD_DIRECTORY, "models"))
Expand Down

0 comments on commit ccbd69c

Please sign in to comment.