Werk #22797: Unit lookup: handle missing metric
| Component | User interface | ||||||
| Title | Unit lookup: handle missing metric | ||||||
| Date | Oct 19, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
When the unit of a selected metric was looked up for a form that lets
you choose a metric (for example in graph or dashboard settings), a
request without a metric produced a crash report with
KeyError: 'metric'.
Such a request is now handled like an empty metric selection, and the default unit is preselected.