gdeltPyR returns a non-intuitive error when no data returns for a single 15 minute data pull. Need to add exception handling to make it clearer to the user that no data returned; right now it looks like gdeltPyR is broken.
Example to recreate
import gdelt
gd = gdelt.gdelt()
a=gd.Search('2017 July 27')
[Out]:
...
File "/Users/linwood/projects/gdeltPyR/gdelt/base.py", line 597, in Search
if len(results.columns) == 57:
AttributeError: 'NoneType' object has no attribute 'columns'
gdeltPyR
returns a non-intuitive error when no data returns for a single 15 minute data pull. Need to add exception handling to make it clearer to the user that no data returned; right now it looks likegdeltPyR
is broken.Example to recreate