diff --git a/gitinspector/format.py b/gitinspector/format.py index 4b7740c..505f9b1 100644 --- a/gitinspector/format.py +++ b/gitinspector/format.py @@ -61,6 +61,7 @@ def __output_html_template__(name): def __get_zip_file_content__(name, file_name="/html/flot.zip"): zip_file = zipfile.ZipFile(basedir.get_basedir() + file_name, "r") content = zip_file.read(name) + zip_file.close() return content.decode("utf-8", "replace")