mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
dcca74027b
commit
e4ebd72a69
@ -23,6 +23,7 @@ from polyglot.builtins import iteritems
|
||||
|
||||
rendering_composite_name = '__rendering_composite__'
|
||||
|
||||
|
||||
def bool_sort_key(bools_are_tristate):
|
||||
return (lambda x:{True: 1, False: 2, None: 3}.get(x, 3)) if bools_are_tristate else lambda x:{True: 1, False: 2, None: 2}.get(x, 2)
|
||||
|
||||
|
@ -2245,7 +2245,7 @@ class BuiltinBookCount(BuiltinFormatterFunction):
|
||||
ids = get_gui().current_db.search_getting_ids(query, None,
|
||||
use_virtual_library=use_vl != '0')
|
||||
return len(ids)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
return _('This function can be used only in the GUI')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user