mozilla-services/vaurien — pull request #5 by xni (2012-10-26 09:53:01+00:00)
Title: Fixed runtime error in RandomProxy.get_handler

There was a runtime error if the RandomProxy was selected (running without ```--http``` option).

Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/gevent-0.13.8-py2.6-linux-x86_64.egg/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/python2.6/dist-packages/vaurien-0.1-py2.6.egg/vaurien/proxy.py", line 46, in handle
handler, handler_name = self.get_handler()
File "/usr/local/lib/python2.6/dist-packages/vaurien-0.1-py2.6.egg/vaurien/proxy.py", line 131, in get_handler
return random.choice(self.choices.items())
AttributeError: 'list' object has no attribute 'items'
>( failed with AttributeError