Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added custom exception and try-catch around the Decoding Part in get_…
…original_file_data() to provide the user with more helpful error messages as well as enabling easy catching of the exception in calling scripts Removed the custom error class again, since decoders that can fail decoding will always raise a UnicodeDecodeError according to https://docs.python.org/3/library/codecs.html. Modified try-catch to add a more specific note to the UnicodeError for better user information.
- Loading branch information