Handle also AttributeError in desktop_xdg

This commit is contained in:
Lee Miller 2022-11-15 15:17:45 +02:00
parent fcb4cc41f3
commit 60d2b392c5
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -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: