Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 69006e05f2556e71eb7940c21ec1cf456ba9d03d
https://github.com/tribe29/checkmk/commit/69006e05f2556e71eb7940c21ec1cf456…
Author: Thierry Trafelet <thierry.tra(a)bluewin.ch>
Date: 2022-11-16 (Wed, 16 Nov 2022)
Changed paths:
M cmk/gui/logged_in.py
Log Message:
-----------
Fix unexpected return value of bi_expansion_level
Because:
- Integer comparisons to bi_expansion_level would fail, if the file
bi_treestate.mk was missing.
This commit:
- Changes the fallback value for load_file in bi_expansion_level to (0,)
instead of (None,). This leads to 0 being the default return value of
bi_expansion_level.
- Fixes a possible TypeError in ABCFoldableTreeRenderer._is_open where
it was possible to try the comparison "int <= None"
Change-Id: I20f45ce75fe38cb7c07a9fc6566eb0856840f959
closes: #535