mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1870631 [Error when attempting to send book to Nook (MTP Driver - Python 3)](https://bugs.launchpad.net/calibre/+bug/1870631)
This commit is contained in:
parent
9c2053ba9c
commit
fba65c2345
@ -373,7 +373,7 @@ class MTP_DEVICE(MTPDeviceBase):
|
||||
e = parent.folder_named(name)
|
||||
if e is not None:
|
||||
return e
|
||||
ename = name.encode('utf-8') if isinstance(name, unicode_type) else name
|
||||
ename = name if ispy3 else as_bytes(name)
|
||||
sid, pid = parent.storage_id, parent.object_id
|
||||
if pid == sid:
|
||||
pid = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user