This commit is contained in:
Pascal Vizeli 2017-05-02 00:57:03 +02:00 committed by GitHub
parent 58fdabb8ff
commit 5840290df7

View File

@ -302,7 +302,8 @@ class AddonsData(Config):
def get_image(self, addon):
"""Return image name of addon."""
addon_data = self._system_data.get(addon, self._addons_cache[addon])
addon_data = self._system_data.get(
addon, self._addons_cache.get(addon))
if ATTR_IMAGE not in addon_data:
return "{}/{}-addon-{}".format(