From 7d0e60413dfd6cb7f6dbe2ecb841a8199f6a43a7 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Tue, 18 Jul 2023 12:53:32 +0200 Subject: [PATCH] fix(pylint): address broad-exception-raised Signed-off-by: Martin Basti --- tests/test_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_parser.py b/tests/test_parser.py index 5fc2888..cc9b010 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -37,7 +37,7 @@ def read_version(fp, regex): if len(found) == 1: return found[0] else: - raise Exception("Version not found!") + raise RuntimeError("Version not found!") import dockerfile_parse from dockerfile_parse import __version__ as module_version