diff options
author | Louis Vézina <[email protected]> | 2019-12-23 16:42:06 -0500 |
---|---|---|
committer | Louis Vézina <[email protected]> | 2019-12-23 16:42:06 -0500 |
commit | 5dc8facae7dfe5b50d8f35c92750f4c07e5d6e79 (patch) | |
tree | a0e7b6377a2dec8c8d3094248f30e5e865034c46 | |
parent | d4fdee1e9f81d0a3d0e07a0e6a9004953fb62cbe (diff) | |
download | bazarr-5dc8facae7dfe5b50d8f35c92750f4c07e5d6e79.tar.gz bazarr-5dc8facae7dfe5b50d8f35c92750f4c07e5d6e79.zip |
Another fix for #709.
-rw-r--r-- | libs/scandir.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/scandir.py b/libs/scandir.py index 2177e7487..3d0bdf140 100644 --- a/libs/scandir.py +++ b/libs/scandir.py @@ -464,11 +464,11 @@ elif sys.platform.startswith(('linux', 'darwin', 'sunos5')) or 'bsd' in sys.plat if self._path is None: # Make sure both attributes are string try: - self._scandir_path = self._scandir_path.decode(encoding="utf-8") + self._scandir_path = self._scandir_path.decode('unicode_escape') except (UnicodeDecodeError, AttributeError): pass try: - self.name = self.name.decode(encoding="utf-8") + self.name = self.name.decode('unicode_escape') except (UnicodeDecodeError, AttributeError): pass self._path = join(self._scandir_path, self.name) |