Commit 43d84a22 authored by mathieui's avatar mathieui

fix: type error after module import

(despite hasattr())
parent 7a9df693
......@@ -574,7 +574,7 @@ def reload_theme() -> Optional[str]:
return 'Failed to load theme: %s' % exc
if hasattr(new_theme, 'theme'):
theme = new_theme.theme
theme = new_theme.theme # type: ignore
return None
return 'No theme present in the theme file'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment