From e94ac035b0ff6037a1e68d065b3ecbb12aa1382e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 20 Apr 2019 07:27:58 +0530 Subject: [PATCH] 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) --- src/calibre/devices/mtp/unix/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/mtp/unix/driver.py b/src/calibre/devices/mtp/unix/driver.py index 332b589031..a04c03483d 100644 --- a/src/calibre/devices/mtp/unix/driver.py +++ b/src/calibre/devices/mtp/unix/driver.py @@ -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