From a49e497cb36a5f203d8197204844e1f2d43c0679 Mon Sep 17 00:00:00 2001 From: Nicola Sella Date: Mon, 2 Dec 2024 20:05:35 +0100 Subject: [PATCH] Remove pylint bare-except comment Signed-off-by: Nicola Sella --- podman/domain/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podman/domain/config.py b/podman/domain/config.py index d2068620..da1997e8 100644 --- a/podman/domain/config.py +++ b/podman/domain/config.py @@ -87,7 +87,7 @@ def __init__(self, path: Optional[str] = None): try: with open(self.path, encoding="utf-8") as file: self.attrs = json.load(file) - except Exception: # pylint: disable=bare-except + except Exception: # if the user specifies a path, it can either be a JSON file # or a TOML file - so try TOML next try: