diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index c015868992..e11f6b45be 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -1892,7 +1892,7 @@ class OEBBook(object): return fix_data(data.decode(bom_enc)) except UnicodeDecodeError: pass - if self.input_encoding is not None: + if self.input_encoding: try: return fix_data(data.decode(self.input_encoding, 'replace')) except UnicodeDecodeError: