From 4b2d60348ca2e18ccfb7d7a92ee9d5b5698da2f9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 29 Apr 2015 07:04:21 +0530 Subject: [PATCH] ... --- src/calibre/gui2/library/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index ae9de999ca..0b1518c5b0 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -251,7 +251,10 @@ class BooksModel(QAbstractTableModel): # {{{ col)) def is_custom_column(self, cc_label): - return cc_label in self.custom_columns + try: + return cc_label in self.custom_columns + except AttributeError: + return False def read_config(self): pass