diff --git a/material/plugins/social/plugin.py b/material/plugins/social/plugin.py index e70758268..9d222eff8 100644 --- a/material/plugins/social/plugin.py +++ b/material/plugins/social/plugin.py @@ -388,7 +388,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): # Retrieve from theme (default: Roboto) theme = config.theme - if theme["font"]: + if isinstance(theme["font"], dict) and "text" in theme["font"]: name = theme["font"]["text"] else: name = "Roboto" diff --git a/src/plugins/social/plugin.py b/src/plugins/social/plugin.py index e70758268..9d222eff8 100644 --- a/src/plugins/social/plugin.py +++ b/src/plugins/social/plugin.py @@ -388,7 +388,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): # Retrieve from theme (default: Roboto) theme = config.theme - if theme["font"]: + if isinstance(theme["font"], dict) and "text" in theme["font"]: name = theme["font"]["text"] else: name = "Roboto"