r399 - in branches/rewrite: . src

Otavio Salvador partial-mirror-devel@lists.alioth.debian.org
Mon, 13 Dec 2004 04:54:49 -0700


Author: otavio
Date: Mon Dec 13 04:54:49 2004
New Revision: 399

Modified:
   branches/rewrite/   (props changed)
   branches/rewrite/src/Download.py
Log:
 r550@nurf:  otavio | 2004-12-13T11:52:09.395425Z
 Check if have some value before close the file.


Modified: branches/rewrite/src/Download.py
==============================================================================
--- branches/rewrite/src/Download.py	(original)
+++ branches/rewrite/src/Download.py	Mon Dec 13 04:54:49 2004
@@ -62,7 +62,8 @@
         self._curl.perform()
 
     def close(self):
-        self._fp.close()
+        if self._fp != None:
+            self._fp.close()
         self._fp = None
         self._curl.close()