summaryrefslogtreecommitdiffstats
path: root/module/download_thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/download_thread.py')
-rw-r--r--module/download_thread.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index ff9c25766..158d40147 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -88,8 +88,9 @@ class Download_Thread(threading.Thread):
except Checksum, e:
self.loadedPyFile.status.type = "failed"
self.loadedPyFile.status.error = "Checksum error: %d" % e.getCode()
- with open("%s.info" % e.getFile(), "w") as f:
- f.write("Checksum not matched!")
+ f = open("%s.info" % e.getFile(), "w")
+ f.write("Checksum not matched!")
+ f.close()
except Exception, e:
try: