Skip to content

Commit

Permalink
Merge pull request #22 from IBM/10-extract-api-methods
Browse files Browse the repository at this point in the history
10 extract api methods - missing last commit
  • Loading branch information
kkazmierczyk authored Oct 30, 2024
2 parents 8773b79 + 3a20736 commit 29c552c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions javacore_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,12 @@ def get_javacore_set_in_xml(self):
Returns:
str: The JavaCore set in the XML format.
"""
file = open(self.report_xml_file, "r")
content = file.read()
file.close()
return content
try:
file = open(self.report_xml_file, "r")
content = file.read()
return content
finally:
file.close()

@staticmethod
def __create_index_html(input_dir, output_dir):
Expand Down

0 comments on commit 29c552c

Please sign in to comment.