Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: b2f3b32d26d8283cce8f08e078a8d0660474e491
https://github.com/Checkmk/checkmk/commit/b2f3b32d26d8283cce8f08e078a8d0660…
Author: Lars Michelsen <lm(a)checkmk.com>
Date: 2023-11-09 (Thu, 09 Nov 2023)
Changed paths:
M cmk/gui/main_modules.py
Log Message:
-----------
Improve ModuleNotFound error handling in main modules
The previous suppression was catching all ModuleNotFoundError
exceptions, independent of which nested import triggered it.
This could lead to painful debugging because follow up code relying on
something was failing with a follow-up traceback, leaving the developer
with unrelated error situations.
We now suppress exceptions more selectively to make sure we fail
early on other ModuleNotFoundErrors.
Change-Id: I9f4631198097054557ee57c6bcef88328d26dc6a