More specific Exception name
IOException > Exception
This commit is contained in:
parent
692dcaa990
commit
264980ad94
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user