From 86f24e99107771ad1225bfd4fdece295f2b86d57 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 6 May 2020 17:24:48 +0200 Subject: [PATCH] fix json excetpion not ioexception --- src/be/nikiroo/fanfix/supported/BasicSupport.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/be/nikiroo/fanfix/supported/BasicSupport.java b/src/be/nikiroo/fanfix/supported/BasicSupport.java index f1635589..56a3bb80 100644 --- a/src/be/nikiroo/fanfix/supported/BasicSupport.java +++ b/src/be/nikiroo/fanfix/supported/BasicSupport.java @@ -12,6 +12,7 @@ import java.util.Map; import java.util.Scanner; import java.util.Map.Entry; +import org.json.JSONException; import org.json.JSONObject; import org.jsoup.helper.DataUtil; import org.jsoup.nodes.Document; @@ -347,6 +348,8 @@ public abstract class BasicSupport { scan.useDelimiter("\0"); try { return new JSONObject(scan.next()); + } catch (JSONException e) { + throw new IOException(e); } finally { scan.close(); } -- 2.27.0