druid-io / pydruid

A Python connector for Druid
Other
507 stars 198 forks source link

Exception when `filter=None` #30

Closed se7entyse7en closed 7 years ago

se7entyse7en commented 8 years ago

When building query if filter=None then an exception occurs:

File "/Users/se7entyse7en/Envs/viralize-web/lib/python2.7/site-packages/pydruid/utils/filters.py", line 61, in build_filter
    return filter_obj.filter['filter']
 AttributeError: 'NoneType' object has no attribute 'filter'
se7entyse7en commented 8 years ago

Given that the filter argument is optional I think that with filter=None it shouldn't throw an exception.