mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure that custcol['display'] is never None.
This commit is contained in:
parent
199738861a
commit
42529417ca
@ -76,6 +76,8 @@ class CustomColumns(object):
|
||||
'num':record[6],
|
||||
'is_multiple':record[7],
|
||||
}
|
||||
if data['display'] is None:
|
||||
data['display'] = {}
|
||||
table, lt = self.custom_table_names(data['num'])
|
||||
if table not in custom_tables or (data['normalized'] and lt not in
|
||||
custom_tables):
|
||||
|
Loading…
x
Reference in New Issue
Block a user