[FIX] cannot marshal None
bzr revid: christophe@tinyerp.com-20090105121723-hzff90u49rq2sd3e
This commit is contained in:
parent
56644bfb37
commit
b69f3b074f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue