Skip to content

Cleanup of Filenaming #3

@colinbjohnson

Description

@colinbjohnson

Currentle exported filenames are written by converting last, first and filename - particular filenames with characters outside of ascii range are not able to be encoded. The lines used to avoid this problem are a hack:

try:
    file_name = '{!s}-{!s}-{!s}'.format(last, first, attachment.file_name)
except UnicodeEncodeError:
    logging.warn('Failed to encode filename for: {!s}'.format(attachment_id))
    continue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions