Commit 451163c4 authored by Vincent Pelletier's avatar Vincent Pelletier

Also replace data value when it's None (fixes r2273).

Otherwise, None ends up being put in object cache, which fails.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2280 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3aae133d
...@@ -605,7 +605,7 @@ class Application(object): ...@@ -605,7 +605,7 @@ class Application(object):
if data is None or data_serial is not None: if data is None or data_serial is not None:
assert data is None or data_serial is None, data_serial assert data is None or data_serial is None, data_serial
# this is a George Bailey object, stored as an empty string # this is a George Bailey object, stored as an empty string
compressed_data = '' data = compressed_data = ''
compression = 0 compression = 0
else: else:
assert data_serial is None assert data_serial is None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment