Commit b6d0cb37 authored by Mike Sheldon's avatar Mike Sheldon

Add check to see if calls to remote gnu fm installs worked

parent 195c988f
......@@ -427,7 +427,14 @@ class RemoteUser extends User {
if ($this->lastfm) {
$wsurl .= '&api_key=' . $lastfm_key;
}
return simplexml_load_file($wsurl);
$response = @simplexml_load_file($wsurl);
if($response == false) {
throw new Exception("Unable to find remote user");
}
return $response;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment