You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the json file being read in has a list of non-datetime values, for example
"mykey" : [ 123, 456 ],
the parser will fail with
AttributeError: 'int' object has no attribute 'items'
This comes from the iteritems(source) function. I was able to fix it with:
for k, v in source.items():
if isinstance(v, list):
#Note this probably will fail for a list of datetimes, but as of now that is not used
pass
but this will probably fail for a list of datetime objects. I haven't figured out how to solve it more generally for lists of ints and for lists of datetime objects.
The text was updated successfully, but these errors were encountered:
If the json file being read in has a list of non-datetime values, for example
"mykey" : [ 123, 456 ],
the parser will fail with
AttributeError: 'int' object has no attribute 'items'
This comes from the iteritems(source) function. I was able to fix it with:
for k, v in source.items():
if isinstance(v, list):
#Note this probably will fail for a list of datetimes, but as of now that is not used
pass
but this will probably fail for a list of datetime objects. I haven't figured out how to solve it more generally for lists of ints and for lists of datetime objects.
The text was updated successfully, but these errors were encountered: