mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 07:46:06 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ def debug_managed_device_detection(self, devices_on_system, output):
|
|||
@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…
Reference in a new issue