mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 23:13:37 +02:00
Fix #1698 (News Save to Device - Kindle). Fix Kindle detection
This commit is contained in:
commit
1f80f2f08a
1 changed files with 3 additions and 3 deletions
|
|
@ -181,11 +181,11 @@ def open_windows(self):
|
|||
elif self.windows_match_device(str(drive.PNPDeviceID), self.WINDOWS_CARD_MEM):
|
||||
drives['card'] = self.windows_get_drive_prefix(drive)
|
||||
|
||||
if 'main' and 'card' in drives.keys():
|
||||
if 'main' in drives.keys() and 'card' in drives.keys():
|
||||
break
|
||||
|
||||
self._main_prefix = drives.get('main', None)
|
||||
self._card_prefix = drives.get('card', None)
|
||||
self._main_prefix = drives.get('main')
|
||||
self._card_prefix = drives.get('card')
|
||||
|
||||
if not self._main_prefix:
|
||||
raise DeviceError(_('Unable to detect the %s disk drive. Try rebooting.') % self.__class__.__name__)
|
||||
|
|
|
|||
Loading…
Reference in a new issue