Digital-Preservation-Finland / dpres-siptools

Pre-Ingest Tool for creating submission information packages
GNU Lesser General Public License v3.0
22 stars 8 forks source link

Ensure error message is not truncated on Python 2 #10

Closed janpulkk closed 4 years ago

janpulkk commented 4 years ago

Only 'ValueError' will be printed on Python 2 if the string contains non-ASCII symbols and it isn't coerced into binary (eg. 'str' on Python 2).

Supersedes earlier GitHub pull request Digital-Preservation-Finland/dpres-siptools#7

vpv-csc commented 4 years ago

This should now be fixed by the commits marked as KDKPAS-2389. I'll close the PR. In case there are still problems, please open a new issue or PR against the current code.