From 61df9eb62a6610361d42a7d5552cdddb3063db8a Mon Sep 17 00:00:00 2001 From: Aljaz Gantar Date: Wed, 24 Mar 2021 00:21:18 +0100 Subject: [PATCH] fix type error when class_name none --- contrib/autoname-workspaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/autoname-workspaces.py b/contrib/autoname-workspaces.py index 297d91b2..2b634eee 100755 --- a/contrib/autoname-workspaces.py +++ b/contrib/autoname-workspaces.py @@ -31,7 +31,7 @@ def icon_for_window(window): else: # xwayland support class_name = window.window_class - if len(class_name) > 0: + if class_name is not None and len(class_name) > 0: class_name = class_name.lower() if class_name in WINDOW_ICONS: return WINDOW_ICONS[class_name]