From 2c333bdf841e421762790a28a1982c0a8a824f49 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 30 Nov 2011 09:57:48 +0530 Subject: [PATCH] ... --- src/calibre/devices/android/driver.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/android/driver.py b/src/calibre/devices/android/driver.py index 73e6bd0dad..d478f47cea 100644 --- a/src/calibre/devices/android/driver.py +++ b/src/calibre/devices/android/driver.py @@ -200,7 +200,10 @@ class ANDROID(USBMS): return dirs def windows_sort_drives(self, drives): - vid, pid, bcd = self.device_being_opened[:3] + try: + vid, pid, bcd = self.device_being_opened[:3] + except: + vid, pid, bcd = -1, -1, -1 if (vid, pid, bcd) == (0x0e79, 0x1408, 0x0222): letter_a = drives.get('carda', None) if letter_a is not None: