Skip to content

Commit

Permalink
2nd attempt at not catching the connection error, push it up so the u…
Browse files Browse the repository at this point in the history
…ser can handle it (for now)
  • Loading branch information
Zuhaib M Siddique committed Mar 5, 2014
1 parent eb5986b commit b9c7f20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions txes/connection_http.py
Expand Up @@ -56,6 +56,7 @@ def execute(self, method, path, body=None, params=None):
def decode_json(body_string): def decode_json(body_string):
return anyjson.deserialize(body_string) return anyjson.deserialize(body_string)
def eb(reason): def eb(reason):
reason.trap(client.error.Error)
status = int(reason.value.status) status = int(reason.value.status)
try: try:
body = decode_json(reason.value.response) body = decode_json(reason.value.response)
Expand Down

0 comments on commit b9c7f20

Please sign in to comment.