Skip to content

Commit

Permalink
closing zip file before delete
Browse files Browse the repository at this point in the history
  • Loading branch information
wizza-smile committed Feb 19, 2015
1 parent b88cf95 commit 2a6a7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/codeintel2/database/stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ def _update_lang_with_ver(self, lang, ver=None, progress_cb=None):
try:
zip_file = zipfile.ZipFile(cix_path+".zip")
zip_file.extractall(path=self.stdlibs_dir)
zip_file.close()
except Exception as ex:
print(ex)
raise CodeIntelError("could not unzip stdlib")
finally:
os.remove(cix_path+".zip")
Expand Down

0 comments on commit 2a6a7e4

Please sign in to comment.