From 60d2b392c52e39d6924cfa436a842208c1bc9079 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Tue, 15 Nov 2022 15:17:45 +0200 Subject: [PATCH] Handle also AttributeError in desktop_xdg --- src/plugins/desktop_xdg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/desktop_xdg.py b/src/plugins/desktop_xdg.py index b666cc3a..0b551e1c 100644 --- a/src/plugins/desktop_xdg.py +++ b/src/plugins/desktop_xdg.py @@ -11,7 +11,7 @@ class DesktopXDG(object): try: self.desktop = Menu.parse().getMenu('Office').getMenuEntry( 'pybitmessage.desktop').DesktopEntry - except Exceptions.ParsingError: + except (AttributeError, Exceptions.ParsingError): raise TypeError # TypeError disables startonlogon appimage = os.getenv('APPIMAGE') if appimage: