Skip to content

Commit

Permalink
raise EtcdServerError instead of EtcdError
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Haering committed Oct 27, 2013
1 parent 6b6997c commit c4759e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txetcd/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _decode_response(self, response):

def _construct_response_object(self, obj):
if 'errorCode' in obj:
raise EtcdError(obj)
raise EtcdServerError(obj)

return EtcdResponse(obj['index'], EtcdNode.from_response(**obj))

Expand Down

0 comments on commit c4759e8

Please sign in to comment.