This commit is contained in:
Romain Bignon 2010-05-01 14:37:57 +02:00
commit fbf639993b
2 changed files with 3 additions and 1 deletions

View file

@ -49,6 +49,8 @@ class PromptScheduler(Scheduler):
sys.stdout.write('\n')
class PromptApplication(ConsoleApplication):
SYNOPSIS = 'Usage: %prog [options (-h for help)]'
def create_weboob(self):
return Weboob(self.APPNAME, scheduler=PromptScheduler(self.prompt, self.read_cb))

View file

@ -59,4 +59,4 @@ def get_parser(preference_order=('lxml', 'html5lib', 'elementtidy', 'builtin')):
except ImportError:
logging.debug('%s is not installed.' % kind)
raise NoParserFound()
raise NoParserFound("No parser found (%s)" % ','.join(preference_order))