We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3724c86 commit 3c1af9fCopy full SHA for 3c1af9f
caltechdata_api/cli.py
@@ -416,7 +416,7 @@ def upload_supporting_file(record_id=None):
416
print("All files added successfully")
417
elif filename == "n":
418
break
419
- elif filename[len(filename)-1] == '/':
+ elif len(filename) != 0 and filename[len(filename)-1] == '/':
420
files_name = files[int(filename[0])-1]
421
filepath = os.path.abspath(files_name)
422
filepaths.append(filepath)
0 commit comments