dabo Commit
Revision 5438
Date: 2009-09-29 10:40:48 -0700 (Tue, 29 Sep 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5438

Changed:
U   trunk/dabo/dApp.py

Log:
Added code to handle empty returns from the _updateFramework() call. In normal 
production this will never happen, as it only gets called after first checking 
for update availability, but it can cause a traceback when testing that method 
independently.


Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py  2009-09-27 13:35:45 UTC (rev 5437)
+++ trunk/dabo/dApp.py  2009-09-29 17:40:48 UTC (rev 5438)
@@ -603,7 +603,11 @@
                        self._resetWebUpdateCheck()
                        return None
 
-               f = StringIO(resp.read())
+               respContent = resp.read()
+               if not respContent:
+                       # No update
+                       return False
+               f = StringIO(respContent)
                zip = ZipFile(f)
                zipfiles = zip.namelist()
                if "DELETEDFILES" in zipfiles:




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to