Fix for error during handling of HTTP error response case in Geonames lookups
This commit is contained in:
parent
8a02cad424
commit
ecd31384ed
@ -458,7 +458,7 @@ class GeonamesPlugin extends Plugin
|
||||
}
|
||||
|
||||
if (!$result->isOk()) {
|
||||
throw new Exception("HTTP error code " . $result->code);
|
||||
throw new Exception("HTTP error code " . $result->getStatus());
|
||||
}
|
||||
|
||||
$body = $result->getBody();
|
||||
|
Loading…
Reference in New Issue
Block a user