committed 10:09AM - 22 Apr 26 UTC
Previously, find_dashboard() wrapped all exceptions — including
GrafanaUnauthori…zedError — in a plain Exception containing a
pre-formatted traceback string. This discarded the original exception
type and caused the CLI to fall through to the catch-all handler,
logging a confusing double-traceback.
Changes:
- grafana.py: remove the try/except wrapper in find_dashboard() so
the original exception type propagates to the caller unchanged.
- cli.py: add an explicit GrafanaUnauthorizedError handler in the
export and remove action blocks, logging a concise actionable
message instead of a full traceback.
Fixes: GrafanaUnauthorizedError produces double traceback on export/remove
Signed-off-by: EisenbergD <dominik.eisenberg@beiersdorf.com>