mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also handle case of carda and cardb but no main
This commit is contained in:
parent
ad5e243821
commit
5bd9418fae
@ -411,6 +411,8 @@ class Device(DeviceConfig, DevicePlugin):
|
||||
drives['carda'] = drives.pop('cardb')
|
||||
if drives.get('main') is None and drives.get('carda') is not None:
|
||||
drives['main'] = drives.pop('carda')
|
||||
if drives.get('carda') is None and drives.get('cardb') is not None:
|
||||
drives['carda'] = drives.pop('cardb')
|
||||
if drives.get('main') is None:
|
||||
raise DeviceError(_('Unable to detect the %s mount point. Try rebooting.')%self.__class__.__name__)
|
||||
pat = self.OSX_MAIN_MEM_VOL_PAT
|
||||
|
Loading…
x
Reference in New Issue
Block a user