Skip to content

Commit 29c552c

Browse files
authored
Merge pull request #22 from IBM/10-extract-api-methods
10 extract api methods - missing last commit
2 parents 8773b79 + 3a20736 commit 29c552c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

javacore_set.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,12 @@ def get_javacore_set_in_xml(self):
447447
Returns:
448448
str: The JavaCore set in the XML format.
449449
"""
450-
file = open(self.report_xml_file, "r")
451-
content = file.read()
452-
file.close()
453-
return content
450+
try:
451+
file = open(self.report_xml_file, "r")
452+
content = file.read()
453+
return content
454+
finally:
455+
file.close()
454456

455457
@staticmethod
456458
def __create_index_html(input_dir, output_dir):

0 commit comments

Comments
 (0)