KoalaTea / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

make_value_from_datastore errors for null values #66

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. my_model.credentials_property = None
2. my_model.put()
3. next time you load my_model error thrown

appreciate this is not very likely to happen, but it happened to me.

the error was with the logging lines - 188 + 189:
 - logging.info("make: Got a " + value)
 - logging.info("make: Got type " + str(type(value)))
throws:
TypeError: cannot concatenate 'str' and 'NoneType' objects
if value is None

changing to ...

if value:
  logging.info("make: Got a %s" % value)
  logging.info("make: Got type %s" % str(type(value)))

would fix the issue.

Original issue reported on code.google.com by gwyn.how...@appogee.co.uk on 21 Oct 2011 at 3:34

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 508e5d56130a.

Original comment by jcgregorio@google.com on 25 Oct 2011 at 5:45