More specific Exception name

IOException > Exception
This commit is contained in:
Kevin Jiang 2018-04-14 17:55:45 -04:00
parent 692dcaa990
commit 264980ad94

View File

@ -128,7 +128,7 @@ public class DeviantartRipper extends AbstractHTMLRipper {
// Attempt Login // Attempt Login
try { try {
cookies = loginToDeviantart(); cookies = loginToDeviantart();
} catch (Exception e) { } catch (IOException e) {
logger.warn("Failed to login: ", e); logger.warn("Failed to login: ", e);
cookies.put("agegate_state","1"); // Bypasses the age gate cookies.put("agegate_state","1"); // Bypasses the age gate
} }