Commit 0ea08c41 authored by Louis's avatar Louis
Browse files

Catch exception when json data cannot be downloaded

parent 28e62ab5
Pipeline #6823 failed with stage
......@@ -67,8 +67,8 @@ class Renderer:
for name in sorted(config['packages']):
try:
self.packages[name] = Package(name)
except ValueError as error:
sys.stderr.write("Ignoring package '{}' with no releases: {}.\n".format(name, error))
except Exception as error:
sys.stderr.write("Ignoring package '{}': {}.\n".format(name, error))
continue
@classmethod
......
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