[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:
|
except Exception, e:
|
||||||
tools.debug(e)
|
tools.debug(e)
|
||||||
raise
|
raise
|
||||||
|
return True
|
||||||
db()
|
db()
|
||||||
|
|
||||||
class MigrationException(Exception): pass
|
class MigrationException(Exception): pass
|
||||||
|
@ -397,6 +398,8 @@ GNU Public Licence.
|
||||||
zip = open(mp, 'w')
|
zip = open(mp, 'w')
|
||||||
zip.write(base64.decodestring(zips[module]))
|
zip.write(base64.decodestring(zips[module]))
|
||||||
zip.close()
|
zip.close()
|
||||||
|
|
||||||
|
return True
|
||||||
except MigrationException, e:
|
except MigrationException, e:
|
||||||
self.abortResponse(1, 'Migration Error', 'warning', str(e))
|
self.abortResponse(1, 'Migration Error', 'warning', str(e))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|
Loading…
Reference in New Issue