We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e38e7df5 authored by P. J. McDermott's avatar P. J. McDermott

Remove the Exception throw in User::getScrobbles().

Server::getRecentScrobbles() doesn't throw anything (it returns null on
error), so there's nothing to catch and nothing to throw. The
conditional statement following that call was also updated accordingly.
parent 5a221688
......@@ -167,13 +167,9 @@ class User {
* @return array An array of scrobbles with human time
function getScrobbles($number, $offset=0) {
try {
$data = Server::getRecentScrobbles($number, $this->uniqueid, $offset);
} catch (Exception $e) {
throw (new Exception('Breakage while getting recent scrobbles'));
$data = Server::getRecentScrobbles($number, $this->uniqueid, $offset);
if (!isset($data)) {
if ($data == null) {
return array();
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