Fix how the fetcher backend factory is called

parent 4b523c6b
......@@ -150,7 +150,8 @@ class ModulePool(list):
new_modules = []
logging.debug("Fetching module: " + str(module))
fetcher = fetch.fetch_type_lookup.get_backend(module)
backend = fetch.fetch_type_lookup.get_backend(module)
fetcher = backend()
result = fetcher.fetch(module)
if result is False:
logging.error("Unable to fetch module %s" % module.url)
......
Markdown is supported
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