Skip to content
Browse files

Revert "Trap connection error and raise it in errback"

This reverts commit 8a76349.
  • Loading branch information...
1 parent 8a76349 commit eb5986be123fae072ff282583ff6797f76f35217 @zsiddique committed Mar 5, 2014
Showing with 1 addition and 5 deletions.
  1. +1 −5 txes/
6 txes/
@@ -7,7 +7,7 @@
import anyjson
-from twisted.internet import defer, reactor, protocol, error
+from twisted.internet import defer, reactor, protocol
from twisted.web import client
from twisted.web import iweb
from twisted.web import http
@@ -56,10 +56,6 @@ def execute(self, method, path, body=None, params=None):
def decode_json(body_string):
return anyjson.deserialize(body_string)
def eb(reason):
- # Trap ConnectionRefused and raise it, no need to get status
- e = reason.trap(error.ConnectionRefusedError)
- if e:
- raise error.ConnectionRefusedError, reason
status = int(reason.value.status)
body = decode_json(reason.value.response)

0 comments on commit eb5986b

Please sign in to comment.
Something went wrong with that request. Please try again.