Skip to content

Commit

Permalink
Improve the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Grand committed Dec 3, 2015
1 parent f8fc41a commit 11aeb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algoliasearch/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def _perform_request(self, hosts, path, method, params=None, body=None,
except AlgoliaException as e:
raise e
except Exception as e:
exceptions_hosts[host] = str(e)
exceptions_hosts[host] = "%s: %s" % (e.__class__.__name__, str(e))
pass

# Impossible to connect
Expand Down

0 comments on commit 11aeb00

Please sign in to comment.