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

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

Catch User::__construct() Exceptions in users_dump_rdf.php script.

parent a0036c98
......@@ -15,7 +15,12 @@ if (! $username)
die("Must provide a username.\n");
}
$user = new User($username);
try {
$user = new User($username);
} catch (Exception $e) {
die("No such user.\n");
}
$scrobbles = $user->getScrobbles(10000);
print "<rdf:RDF
......@@ -61,4 +66,4 @@ while ($s = array_shift($scrobbles))
);
}
print "</rdf:RDF>\n";
\ No newline at end of file
print "</rdf:RDF>\n";
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