Permalink
Browse files

fix http helper

  • Loading branch information...
1 parent 07be6d3 commit b56bce21522963e0e8c9ca5b84dd14f4d942bf56 bevenky committed May 18, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/plivo/rest/freeswitch/helpers.py
@@ -163,8 +163,11 @@ def fetch_response(self, uri, params, method='POST'):
query = urlparse.urlsplit(uri)[3]
args = query.split('&')
for arg in args:
- k, v = arg.split('=')
- params.update({k:v})
+ try:
+ k, v = arg.split('=')
+ params.update({k:v})
+ except ValueError:
+ pass
request = self._prepare_http_request(uri, params, method)
response = urllib2.urlopen(request).read()

0 comments on commit b56bce2

Please sign in to comment.