The error occurs after when I retrieve data from memcache. Here's how
to reproduce the issue. (Again, not happen every time. It happens
particular entity.)
class Dummy(db.Model):
blocking = db.ListProperty(int, indexed=False)
class CacheTest(webapp.RequestHandler):
def get(self, action):
if action == 'setup':
self.setup()
elif action == 'load':
self.load()
else:
return
def setup(self):
d = Dummy(blocking = [])
d.save()
memcache.set('dummy', d)
def load(self):
d = memcache.get('dummy') <---- exception occurs here
On Mar 2, 11:45 am, naan <[email protected]> wrote:
> Hi,
>
> When I set empty list to db.ListProperty(int), I got following error
> randomly. (The error doesn't seem to occur every time.) How can I deal
> with this error?
>
> <class 'google.appengine.api.datastore_errors.BadValueError'>: May not
> use the empty list as a property value; property blocking is [].
>
> - Kazuho
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.