Skip to content

Commit

Permalink
display type of skipped contribution attachments (e.g. "link")
Browse files Browse the repository at this point in the history
  • Loading branch information
olifre committed Sep 19, 2023
1 parent 4190766 commit c81ec32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indico-fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def exec_request(indico_instance, request_path):
mtime = dateutil.parser.parse(mod)
mtimets = int(time.mktime(mtime.timetuple()))
if attachment['type'] != 'file':
print('Skipping non-file attachment...')
print(f"Skipping non-file attachment (type: {attachment['type']})...")
continue
# Remove any bad characters from filenames:
sanitized_filename = re.sub('[^\w\.\s-]', '', attachment['filename'])
Expand Down

0 comments on commit c81ec32

Please sign in to comment.