mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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
|
from calibre.web.feeds.recipes import titles
|
||||||
self.log('Available recipes:')
|
self.log('Available recipes:')
|
||||||
for title in sorted(titles):
|
for title in sorted(titles):
|
||||||
|
try:
|
||||||
self.log('\t'+title)
|
self.log('\t'+title)
|
||||||
|
except:
|
||||||
|
self.log('\t'+repr(title))
|
||||||
self.log('%d recipes available'%len(titles))
|
self.log('%d recipes available'%len(titles))
|
||||||
raise SystemExit(0)
|
raise SystemExit(0)
|
||||||
self.flush()
|
self.flush()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user