From 8b7bdb30388a7937326ce8322047dded1f0b664d Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 20 Jul 2021 23:20:38 +0200 Subject: [PATCH] i3-companion: don't crash on windows without a class --- bin/i3-companion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/i3-companion b/bin/i3-companion index 3b2f190..dc09f88 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -291,7 +291,7 @@ async def workspace_rename(i3, event): if window.sticky: continue icon = application_icons.get( - window.window_class.lower(), application_icons_nomatch + (window.window_class or "").lower(), application_icons_nomatch ) if icon is not None: icons.add(icon)