[Downloader] Handle no info.json

Fixes #562
This commit is contained in:
Twentysix
2017-01-05 18:00:30 +01:00
parent 924ba8b69e
commit 2a8818393e

View File

@@ -410,6 +410,7 @@ class Downloader:
cog_folder_path = self.repos[repo_name][cog]['folder']
cog_data_path = os.path.join(cog_folder_path, 'data')
data = self.get_info_data(repo_name, cog)
if data is not None:
requirements = data.get("REQUIREMENTS", [])
requirements = [r for r in requirements