From e279b5e010bebbb9a21b63b4332446a772c64289 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 26 Apr 2014 13:45:13 +0200 Subject: external (?) bug workaround MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/x-window-focus | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/x-window-focus b/examples/x-window-focus index 5b2a685..81e75d9 100644 --- a/examples/x-window-focus +++ b/examples/x-window-focus @@ -129,7 +129,11 @@ def periodically(year, month, day, hour, minute, second, weekday, fade): # Get window specifications wm_class = window.get_wm_class() - wm_name = window.get_wm_name() + wm_name = None + try: + wm_name = window.get_wm_name() + except: + pass ## Buf in python3-xlib (?) if (wm_class is None) and (wm_name is None): x_display.next_event() return -- cgit v1.2.3-70-g09d2