1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-01 01:43:33 +02:00

Removed another unicode/string nonsense

This commit is contained in:
2020-04-23 19:51:25 +02:00
parent de4f8a444b
commit 16d169d0d6
13 changed files with 20 additions and 86 deletions

View File

@@ -5,7 +5,7 @@ import locale
import os
import sys
from ebook_converter.polyglot.builtins import environ_item, hasenv, as_unicode, native_string_type
from ebook_converter.polyglot.builtins import environ_item, hasenv, as_unicode
__appname__ = 'calibre'
numeric_version = (4, 12, 0)
@@ -178,7 +178,7 @@ class Plugins(collections.Mapping):
try:
plugin_err = str(err)
except Exception:
plugin_err = as_unicode(native_string_type(err), encoding=preferred_encoding, errors='replace')
plugin_err = as_unicode(err, encoding=preferred_encoding, errors='replace')
self._plugins[name] = p, plugin_err
# sys.path.remove(plugins_loc)