Closed xorgy closed 6 years ago
Great catch! Note that if we return a missing (np.nan
), then it will not have to influence the result :)
@kootenpv If you return np.nan
here it crashes somewhere else.
Yeah, that causes get_window_info()
to crash in much the same way (due to over-specific exception handling). I think it's better to leave it as None, because get_window_info()
will use the last value that way anyhow.
In my window manager, it is possible for there to be no windows on the screen, and thus no active window, causing this exception to bubble up:
It is also possible for the active window to have no class, causing this one to bubble up and crash instead: