Branch: refs/heads/2.1.0
Home:
https://github.com/tribe29/checkmk
Commit: e6210be43a16fa07d519fe6d35ab8bda1a7c8abc
https://github.com/tribe29/checkmk/commit/e6210be43a16fa07d519fe6d35ab8bda1…
Author: Thierry Trafelet <thierry.tra(a)bluewin.ch>
Date: 2022-11-16 (Wed, 16 Nov 2022)
Changed paths:
M cmk/gui/utils/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