diff --git a/src/main/python/ddadevops/domain/build_file.py b/src/main/python/ddadevops/domain/build_file.py index 350a4a9..07711cd 100644 --- a/src/main/python/ddadevops/domain/build_file.py +++ b/src/main/python/ddadevops/domain/build_file.py @@ -76,7 +76,7 @@ class BuildFile(Validateable): ) version_str = version_string.group() except: - raise Exception(f"Version not found in file {self.file_path}") + raise RuntimeError(f"Version not found in file {self.file_path}") result = Version.from_str(version_str, self.get_default_suffix()) result.throw_if_invalid() @@ -115,7 +115,7 @@ class BuildFile(Validateable): ) self.content = substitute except: - raise Exception(f"Version not found in file {self.file_path}") + raise RuntimeError(f"Version not found in file {self.file_path}") def get_default_suffix(self) -> str: result = "SNAPSHOT"