Merge pull request #5876 from ynput/bugfix/ayon-loader-icons-fix

AYON tools: Handle empty icon definition
This commit is contained in:
Jakub Trllo 2023-11-07 14:25:04 +01:00 committed by GitHub
commit 4bb7c58231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,6 +54,8 @@ class _IconsCache:
@classmethod
def get_icon(cls, icon_def):
if not icon_def:
return None
icon_type = icon_def["type"]
cache_key = cls._get_cache_key(icon_def)
cache = cls._cache.get(cache_key)