[FIX] cannot marshal None

bzr revid: christophe@tinyerp.com-20090105121723-hzff90u49rq2sd3e
This commit is contained in:
Christophe Simonis
2009-01-05 13:17:23 +01:00
parent 56644bfb37
commit b69f3b074f
+3
View File
@@ -286,6 +286,7 @@ class db(netsvc.Service):
except Exception, e:
tools.debug(e)
raise
return True
db()
class MigrationException(Exception): pass
@@ -397,6 +398,8 @@ GNU Public Licence.
zip = open(mp, 'w')
zip.write(base64.decodestring(zips[module]))
zip.close()
return True
except MigrationException, e:
self.abortResponse(1, 'Migration Error', 'warning', str(e))
except Exception, e: