mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #2864 (ebook-convert --list-recipes fails with UnicodeEncodeError (0.6.0b14))
This commit is contained in:
parent
d1aabbaa1f
commit
2f8d95124e
@ -615,7 +615,10 @@ OptionRecommendation(name='list_recipes',
|
||||
from calibre.web.feeds.recipes import titles
|
||||
self.log('Available recipes:')
|
||||
for title in sorted(titles):
|
||||
try:
|
||||
self.log('\t'+title)
|
||||
except:
|
||||
self.log('\t'+repr(title))
|
||||
self.log('%d recipes available'%len(titles))
|
||||
raise SystemExit(0)
|
||||
self.flush()
|
||||
|
Loading…
x
Reference in New Issue
Block a user