|
61 | 61 |
|
62 | 62 | If the web service returns an explicit error document, this is thrown as a |
63 | 63 | WebServiceError exception. If some other sort of error occurs, this is |
64 | | -thrown as a HTTPError. The difference is that the webservice error |
| 64 | +thrown as an HTTPError. The difference is that the WebServiceError |
65 | 65 | includes an error message and error code delivered by the web service. The |
66 | 66 | latter is thrown when some sort of unanticipated error occurs, such as the |
67 | 67 | web service returning a 500 or an invalid error document. |
68 | 68 |
|
69 | 69 | If the web service returns any status code besides 200, 4xx, or 5xx, this also |
70 | | -becomes a HTTPError. |
| 70 | +becomes an HTTPError. |
71 | 71 |
|
72 | 72 | Finally, if the web service returns a 200 but the body is invalid, the client |
73 | 73 | throws a GeoIP2Error object. |
@@ -126,16 +126,16 @@ class Client(object): |
126 | 126 | "geoip.maxmind.com". In most cases, you should not need to set this |
127 | 127 | explicitly. |
128 | 128 | :param languages: This is list of language codes. This argument will be |
129 | | - passed onto record classes to use when their name properties are |
| 129 | + passed on to record classes to use when their name properties are |
130 | 130 | called. The default value is ['en']. |
131 | 131 |
|
132 | 132 | The order of the languages is significant. When a record class has |
133 | 133 | multiple names (country, city, etc.), its name property will return |
134 | 134 | the name in the first language that has one. |
135 | 135 |
|
136 | 136 | Note that the only language which is always present in the GeoIP2 |
137 | | - data in "en". If you do not include this language, the name property |
138 | | - may end up returning None even when the record hass an English name. |
| 137 | + data is "en". If you do not include this language, the name property |
| 138 | + may end up returning None even when the record has an English name. |
139 | 139 |
|
140 | 140 | Currently, the valid language codes are: |
141 | 141 |
|
|
0 commit comments