summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-25 22:03:13 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commit43d84a22882a7a4362e3df6fd71d74d296297fe7 (patch)
tree2c4427574dc5fe4fe98f7f686a8ac518fc198544
parent7a9df693641fc68a4e5ba98ebdea9324892cbbc1 (diff)
downloadpoezio-43d84a22882a7a4362e3df6fd71d74d296297fe7.tar.gz
poezio-43d84a22882a7a4362e3df6fd71d74d296297fe7.tar.bz2
poezio-43d84a22882a7a4362e3df6fd71d74d296297fe7.tar.xz
poezio-43d84a22882a7a4362e3df6fd71d74d296297fe7.zip
fix: type error after module import
(despite hasattr())
-rwxr-xr-xpoezio/theming.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/theming.py b/poezio/theming.py
index d8720d51..c5df114e 100755
--- a/poezio/theming.py
+++ b/poezio/theming.py
@@ -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
prepare_ccolor_palette(theme)
return None
return 'No theme present in the theme file'