What happen if I try to evaluate non-existing property of entries?(Datastore, Python)

0 views
Skip to first unread message

Fazil Zaid via StackOverflow

unread,
May 15, 2017, 8:03:05 AM5/15/17
to gcd-stac...@googlegroups.com

You could try this,

groups = [e for e in Group.all()]
for group in groups:
    try:
        if group.mid == 3:
            #do_your_thing...
    except AttributeError:
        pass


Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/43978094/what-happen-if-i-try-to-evaluate-non-existing-property-of-entriesdatastore-py/43979040#43979040
Reply all
Reply to author
Forward
0 new messages