Werk #16623: HW/SW Inventory: Fix crash when filtering for number of sites for Checkmk version

Component HW/SW inventory
Title HW/SW Inventory: Fix crash when filtering for number of sites for Checkmk version
Date Mar 11, 2024
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.1.0p42 2.2.0p26 2.3.0b3 2.4.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

When filtering the Checkmk versions -> #Sites inventory column, a crash occurs with

TypeError (expected string or bytes-like object)
...
File "/omd/sites/oldstable/lib/python3/cmk/gui/query_filters.py", line 510, in <lambda>
    return lambda row: bool(regex.search(row.get(column, "")))

This crash has been fixed.

To the list of all Werks