mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -04:00
Fix #2864 (ebook-convert --list-recipes fails with UnicodeEncodeError (0.6.0b14))
This commit is contained in:
@@ -615,7 +615,10 @@ OptionRecommendation(name='list_recipes',
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user