Commit cdbc1dc5 authored by Florian Pritz's avatar Florian Pritz
Browse files

Print failed directories to stdout as described by readme

Signed-off-by: Florian Pritz's avatarFlorian Pritz <>
parent a5a6785f
......@@ -70,6 +70,7 @@ class ArchiveUploader:
res = self.ia.upload(identifier, files=files, metadata=metadata)
file_status = zip(files, res)
print_error = False
for status in file_status:
f = status[0]
code = status[1].status_code
......@@ -78,6 +79,10 @@ class ArchiveUploader:
print(f"Upload failed with status code '{code}' for directory '{directory}' and file: {f}", file=sys.stderr)
print_error = True
if print_error:
except Exception as e:
print(f"{identifier}: exception raised", file=sys.stderr)
print(e, file=sys.stderr)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment