Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle UnicodeDecodeerror in source files
Dealing with bad encoded source file will result in: Traceback (most recent call last): File "<string>", line 538, in render File "<string>", line 1178, in lines File "/usr/lib/python3.9/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 1050: invalid start byte This patch will try to address this issue according to: https://docs.python.org/3/library/codecs.html#error-handlers
- Loading branch information