mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 15:28:37 -05:00
CloudSearch: Fix AttributeError when record_stats = False.
While the stub-timer I introduced earlier takes care of some issues, it doesn't take care of when we explicitly set the variable to None!
This commit is contained in:
@@ -550,7 +550,8 @@ def basic_query(query=None, bq=None, faceting=None, size=1000,
|
||||
response)
|
||||
finally:
|
||||
connection.close()
|
||||
timer.stop()
|
||||
if timer is not None:
|
||||
timer.stop()
|
||||
|
||||
return json.loads(response)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user