Skip to content

Commit dd11709

Browse files
committed
Raise exception for unsupported languages
1 parent 102504d commit dd11709

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build-scripts/generate_profile_remediations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ def create_header(self, profile):
316316
"Bash Remediation Script for building Project Hummingbird "
317317
"container images")
318318
how_to_apply = "# RUN remediation-script.sh ${NEWROOT}\n"
319+
else:
320+
raise ValueError("Unknown language %s" % self.language)
319321
profile_title = profile.find("./{%s}title" % XCCDF12_NS).text
320322
description = profile.find("./{%s}description" % XCCDF12_NS).text
321323
commented_profile_description = comment(description)

0 commit comments

Comments
 (0)