mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 02:46:10 +01:00
...
This commit is contained in:
parent
2f9028e872
commit
e480e64477
1 changed files with 4 additions and 1 deletions
|
|
@ -28,7 +28,10 @@ def __init__(self, settings, all_formats, supports_subdirs,
|
|||
|
||||
all_formats = set(all_formats)
|
||||
self.calibre_known_formats = device.FORMATS
|
||||
self.device_name = device.get_gui_name()
|
||||
try:
|
||||
self.device_name = device.get_gui_name()
|
||||
except TypeError:
|
||||
self.device_name = getattr(device, 'gui_name', None) or _('Device')
|
||||
if device.USER_CAN_ADD_NEW_FORMATS:
|
||||
all_formats = set(all_formats) | set(BOOK_EXTENSIONS)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue