diff --git a/src/xpra/x11/gtk2/models/window.py b/src/xpra/x11/gtk2/models/window.py index 98b8614e8e..70144cb04c 100644 --- a/src/xpra/x11/gtk2/models/window.py +++ b/src/xpra/x11/gtk2/models/window.py @@ -696,10 +696,13 @@ def get_default_window_icon(self): iconlog("%s.lookup_icon(%s)=%s", it, icon_name, i) if not i: continue - p = i.load_icon() - iconlog("%s.load_icon()=%s", i, p) - if p: - break + try: + p = i.load_icon() + iconlog("%s.load_icon()=%s", i, p) + if p: + break + except Exception: + iconlog("%s.load_icon()", i, exc_info=True) if p is None: return None #to make it consistent with the "icon" property,