浏览代码

do_show_rc: suppress bandit warning

see the comment in line 201.
Thomas Waldmann 3 天之前
父节点
当前提交
a32989071b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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))
             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