View Single Post
Old 05-12-2012, 01:08 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I have added a method to fail and display a simple message to the user instead of an error dialog. http://bazaar.launchpad.net/~kovid/c...revision/12162


If you want to use it in your recipe and have your recipe remain compatible with older calibre versions, do this

Code:
if hasattr(self, 'abort_recipe_processing'):
   self.abort_recipe_processing('Pocket download aborted as no new articles found')
kovidgoyal is offline   Reply With Quote