Fix #973336 (calibre, version 0.8.45 ERROR: Unhandled exception: <b>AttributeError</b>:'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')

This commit is contained in:
Kovid Goyal 2012-04-04 21:41:39 +05:30
parent 3a758cc7d2
commit c8c4389a61

View File

@ -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: