From c8c4389a615e204a544fde8613bd81fc80e08717 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 4 Apr 2012 21:41:39 +0530 Subject: [PATCH] Fix #973336 (calibre, version 0.8.45 ERROR: Unhandled exception: AttributeError:'int' object has no attribute 'replace' Traceback (most recent call last): File "site-packages/calibre/gui2/cover_flow.py", line 74, in caption AttributeError: 'int' object has no attribute 'replace') --- src/calibre/gui2/cover_flow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/cover_flow.py b/src/calibre/gui2/cover_flow.py index dd4763782a..bcbb3d7fbe 100644 --- a/src/calibre/gui2/cover_flow.py +++ b/src/calibre/gui2/cover_flow.py @@ -69,9 +69,10 @@ if pictureflow is not None: ans = self.model.title(index) if not ans: ans = '' + ans = ans.replace('&', '&&') except: ans = '' - return ans.replace('&', '&&') + return ans def subtitle(self, index): try: