diff --git a/common/components.py b/common/components.py index f16e0ba..7aa47ef 100644 --- a/common/components.py +++ b/common/components.py @@ -128,7 +128,11 @@ def Icon( name: str, attributes: list[HTMLAttribute] = [], ): - return Component(template=f"cotton/icon/{name}.html", attributes=attributes) + try: + result = Component(template=f"cotton/icon/{name}.html", attributes=attributes) + except TemplateDoesNotExist: + result = Icon(name="unspecified", attributes=attributes) + return result def LinkedNameWithPlatformIcon(name: str, game_id: int, platform: str) -> SafeText: