http-api: Remove unused exception thrown from hiscore client

This commit is contained in:
Adam
2017-05-14 18:36:52 -04:00
parent 1ce044c308
commit cb0417cc9f
2 changed files with 2 additions and 3 deletions

View File

@@ -28,7 +28,6 @@ import com.google.gson.Gson;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URISyntaxException;
import net.runelite.http.api.RuneliteAPI;
import okhttp3.HttpUrl;
import okhttp3.OkHttpClient;
@@ -45,7 +44,7 @@ public class HiscoreClient
private final OkHttpClient client = new OkHttpClient();
private final Gson gson = new Gson();
public HiscoreResult lookup(String username) throws IOException, URISyntaxException
public HiscoreResult lookup(String username) throws IOException
{
HttpUrl.Builder builder = RuneliteAPI.getApiBase().newBuilder()
.addPathSegment("hiscore")

View File

@@ -181,7 +181,7 @@ public class HiscorePanel extends PluginPanel
{
result = client.lookup(lookup);
}
catch (IOException | URISyntaxException ex)
catch (IOException ex)
{
logger.warn(null, ex);
return;