Commit 9e454597 authored by ZeHiro's avatar ZeHiro Committed by ZeHiro
Browse files

Use DummyProgress also for update. Fixes #566

parent 79b0bfa8
......@@ -49,6 +49,12 @@ with file(err_path) as f:
INVALID_PARAMETERS = j['INVALID_PARAMETERS']
NO_ACCOUNTS = j['NO_ACCOUNTS']
# Careful: this is extracted from weboob's code.
# Install the module if necessary and hide the progress.
class DummyProgress:
def progress(self, a, b):
pass
class Connector(object):
'''
Connector is a tool that connects to common websites like bank website,
......@@ -83,7 +89,7 @@ class Connector(object):
@staticmethod
def update(retry=False):
try:
return Connector.weboob().update()
return Connector.weboob().update(progress=DummyProgress())
except Exception as e:
if retry:
raise e
......@@ -99,12 +105,6 @@ class Connector(object):
'''
self.weboob = Connector.weboob()
# Careful: this is extracted from weboob's code.
# Install the module if necessary and hide the progress.
class DummyProgress:
def progress(self, a, b):
pass
repositories = self.weboob.repositories
minfo = repositories.get_module_info(modulename)
if minfo is not None and not minfo.is_installed():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment