mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix a regression that broke connecting to MTP devices on macOS/Linux
Fixes #1825542 [Since 3.40.{0,1} Onyx Boox (mtp device) is not detected](https://bugs.launchpad.net/calibre/+bug/1825542)
This commit is contained in:
parent
92a8ef3240
commit
e94ac035b0
@ -167,7 +167,7 @@ class MTP_DEVICE(MTPDeviceBase):
|
||||
@synchronous
|
||||
def create_device(self, connected_device):
|
||||
d = connected_device
|
||||
man, prod = d.manufacturer, d.prod
|
||||
man, prod = d.manufacturer, d.product
|
||||
if ispy3:
|
||||
man = force_unicode(man, 'utf-8') if isinstance(man, bytes) else man
|
||||
prod = force_unicode(prod, 'utf-8') if isinstance(prod, bytes) else prod
|
||||
|
Loading…
x
Reference in New Issue
Block a user