Skip to content
Snippets Groups Projects
Commit 3ce83b19 authored by Christos Diamantis's avatar Christos Diamantis Committed by Allan Chappell
Browse files

Issue #3343789 by Christos Diamantis: getTimezoneGeo function on...

Issue #3343789 by Christos Diamantis: getTimezoneGeo function on WeatherService does not handle 4xx or 5xx responses
parent 53df8a9b
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@ class WeatherService {
$timezonedata = simplexml_load_string($timezone->getBody()->getContents());
}
}
catch (ConnectException $e) {
catch (GuzzleException $e) {
$timezonedata = FALSE;
}
if (empty($timezonedata)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment