Browse Source

Fix being unable to resume an upload that crashed in the first part

master
JustAnotherArchivist 2 years ago
parent
commit
58f0f0f8d0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ia-upload-stream

+ 1
- 1
ia-upload-stream View File

@@ -220,7 +220,7 @@ def main():
args = parser.parse_args()
if (args.parts or args.abort) and not args.uploadId:
parser.error('--parts and --abort can only be used together with --upload-id')
if args.uploadId and bool(args.parts) == bool(args.abort):
if args.uploadId and (args.parts is not None) == bool(args.abort):
parser.error('--upload-id requires exactly one of --parts and --abort')

logging.basicConfig(level = logging.INFO, format = '{asctime}.{msecs:03.0f} {levelname} {name} {message}', datefmt = '%Y-%m-%d %H:%M:%S', style = '{')


Loading…
Cancel
Save