From e0be0d844d091bed368f5e7d01f961836922e5f8 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sat, 23 Jul 2011 16:37:01 +0100 Subject: [PATCH] Fix exception arising when someone empties the author link template box. --- src/calibre/gui2/book_details.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/book_details.py b/src/calibre/gui2/book_details.py index 07a963c81b..ebb7c9d5ed 100644 --- a/src/calibre/gui2/book_details.py +++ b/src/calibre/gui2/book_details.py @@ -143,6 +143,8 @@ def render_data(mi, use_roman_numbers=True, all_fields=False): vals['author_sort'] = aut.replace(' ', '+') link = formatter.safe_format( gprefs.get('default_author_link'), vals, '', vals) + else: + link = '' if link: link = prepare_string_for_xml(link) authors.append(u'%s'%(link, aut))