do_show_rc: suppress bandit warning

see the comment in line 201.
This commit is contained in:
Thomas Waldmann 2025-10-16 02:46:08 +02:00
parent a775517f08
commit a32989071b
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -197,6 +197,6 @@ def do_show_rc(exit_code):
rc_logger.warning(exit_msg % (ec_class, exit_code))
elif ec_class in ("error", "signal"):
rc_logger.error(exit_msg % (ec_class, exit_code))
except Exception:
except Exception: # nosec B110
# Never let logging issues interfere with exit behaviour
pass