Skip to content

Commit 7d0e604

Browse files
MartinBastimkosiarc
authored andcommitted
fix(pylint): address broad-exception-raised
Signed-off-by: Martin Basti <mbasti@redhat.com>
1 parent 9cd9cde commit 7d0e604

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def read_version(fp, regex):
3737
if len(found) == 1:
3838
return found[0]
3939
else:
40-
raise Exception("Version not found!")
40+
raise RuntimeError("Version not found!")
4141

4242
import dockerfile_parse
4343
from dockerfile_parse import __version__ as module_version

0 commit comments

Comments
 (0)