Fix error with repository without repository.json (#1088)

This commit is contained in:
Pascal Vizeli 2019-05-18 22:17:32 +02:00 committed by GitHub
parent fa4f7697b7
commit 11a7e8b15d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ class Repository(CoreSysAttributes):
@property
def data(self):
"""Return data struct repository."""
return self.sys_store.data.repositories[self.slug]
return self.sys_store.data.repositories.get(self.slug, {})
@property
def name(self):