From 06280ec555be5df5989942d825999834cba05b3c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 15 Jun 2017 10:07:08 +0530 Subject: [PATCH] ... --- src/calibre/devices/usbms/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/usbms/device.py b/src/calibre/devices/usbms/device.py index 613161cd5f..dcae8e3942 100644 --- a/src/calibre/devices/usbms/device.py +++ b/src/calibre/devices/usbms/device.py @@ -407,9 +407,9 @@ class Device(DeviceConfig, DevicePlugin): print from pprint import pprint pprint({'bsd_drives': bsd_drives, 'mount_map': mount_map, 'drives': drives}) - if drives.get('carda') is None and drives.get('cardb'): + if drives.get('carda') is None and drives.get('cardb') is not None: drives['carda'] = drives.pop('cardb') - if drives.get('main') is None and drives.get('carda'): + if drives.get('main') is None and drives.get('carda') is not None: drives['main'] = drives.pop('carda') if drives.get('main') is None: raise DeviceError(_('Unable to detect the %s mount point. Try rebooting.')%self.__class__.__name__)