mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Smart device driver: Avoid exception when using OPT_COLLECTIONS
Needs proper root cause analysis and fix but at least dont fail in the meantime.
This commit is contained in:
parent
18bd4f4703
commit
1adcbd02a7
@ -1400,7 +1400,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
self.settings().extra_customization[self.OPT_COLLECTIONS].split(',')]
|
self.settings().extra_customization[self.OPT_COLLECTIONS].split(',')]
|
||||||
self._debug('collection attributes', colattrs)
|
self._debug('collection attributes', colattrs)
|
||||||
coldict = {}
|
coldict = {}
|
||||||
if colattrs:
|
if colattrs and hasattr(booklists[0], 'get_collections'):
|
||||||
collections = booklists[0].get_collections(colattrs)
|
collections = booklists[0].get_collections(colattrs)
|
||||||
for k,v in iteritems(collections):
|
for k,v in iteritems(collections):
|
||||||
lpaths = []
|
lpaths = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user