diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index a0dbd1551d..867c9dd629 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -1240,7 +1240,7 @@ class InvalidMobi(InvalidBook): def do_explode(path, dest): from calibre.ebooks.mobi.reader.mobi6 import MobiReader from calibre.ebooks.mobi.reader.mobi8 import Mobi8Reader - with open(path, 'rb') as stream: + with lopen(path, 'rb') as stream: mr = MobiReader(stream, default_log, None, None) with CurrentDir(dest):