Skip to content

Commit

Permalink
state null check
Browse files Browse the repository at this point in the history
  • Loading branch information
arunpandianp committed May 2, 2014
1 parent 53f2074 commit 8452924
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ooni/templates/httpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ def errback(failure, request):

if use_tor:
state = config.tor_state
state.add_stream_listener(StreamListener(request))
if state:
state.add_stream_listener(StreamListener(request))

d = agent.request(request['method'], request['url'], headers,
body_producer)
Expand Down

0 comments on commit 8452924

Please sign in to comment.