mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 20:46:54 +01:00
Fix #2864 (ebook-convert --list-recipes fails with UnicodeEncodeError (0.6.0b14))
This commit is contained in:
parent
d1aabbaa1f
commit
2f8d95124e
1 changed files with 4 additions and 1 deletions
|
|
@ -615,7 +615,10 @@ def run(self):
|
|||
from calibre.web.feeds.recipes import titles
|
||||
self.log('Available recipes:')
|
||||
for title in sorted(titles):
|
||||
self.log('\t'+title)
|
||||
try:
|
||||
self.log('\t'+title)
|
||||
except:
|
||||
self.log('\t'+repr(title))
|
||||
self.log('%d recipes available'%len(titles))
|
||||
raise SystemExit(0)
|
||||
self.flush()
|
||||
|
|
|
|||
Loading…
Reference in a new issue