Prechádzať zdrojové kódy

do_show_rc: suppress bandit warning

see the comment in line 201.
Thomas Waldmann 3 dní pred
rodič
commit
a32989071b
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/borg/helpers/__init__.py

+ 1 - 1
src/borg/helpers/__init__.py

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