Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/crate/client/doctests/http.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ an exception is raised when the timeout is reached::
...
crate.client.exceptions.ConnectionError: No more Servers available, exception from last server: ...

When connecting to non Crate servers the HttpClient will raise a ConnectionError like this::
When connecting to non-CrateDB servers, the HttpClient will raise a ConnectionError like this::

>>> http_client = HttpClient(["https://crate.io"])
>>> http_client = HttpClient(["https://httpbin.org/html"])
>>> http_client.server_infos(http_client._get_server())
Traceback (most recent call last):
...
crate.client.exceptions.ProgrammingError: Invalid server response of content-type 'text/html; charset=UTF-8':
crate.client.exceptions.ProgrammingError: Invalid server response of content-type 'text/html; charset=utf-8':
...

When using the ``error_trace`` kwarg a full traceback of the server exception
Expand Down
2 changes: 1 addition & 1 deletion src/crate/client/doctests/mocking.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Client Mocking
For testing purposes it is often useful to replace the client used for
communication with the CrateDB server with a stub or mock.

This can be done by passing a object of the Client class when calling the
This can be done by passing an object of the Client class when calling the
``connect`` method::

>>> from crate import client
Expand Down