diff --git a/qtawesome/iconic_font.py b/qtawesome/iconic_font.py index 96f40fde..dd8c3776 100644 --- a/qtawesome/iconic_font.py +++ b/qtawesome/iconic_font.py @@ -636,7 +636,7 @@ def _install_fonts(self, fonts_directory): with winreg.OpenKey(winreg.HKEY_CURRENT_USER, FONTS_REG_PATH, 0, winreg.KEY_SET_VALUE) as key: winreg.SetValueEx(key, fontname, 0, winreg.REG_SZ, filename) - except FileNotFoundError: + except OSError: # Needed to support older Windows version where # font installation per user is not possible/related registry # entry is not available