misc
This commit is contained in:
parent
245c44987d
commit
fbf639993b
2 changed files with 3 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue