Skip to content

Commit 3592134

Browse files
StypoxTobiGr
authored andcommitted
Use Exception instead of Throwable (more consistent)
1 parent db3596c commit 3592134

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeChannelInfoItemExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ public String getUrl() throws ParsingException {
6666
if (match.matches()) {
6767
return YoutubeChannelExtractor.CHANNEL_URL_BASE + match.group(1);
6868
}
69-
} catch(Throwable ignored) {}
69+
} catch(Exception ignored) {}
7070

7171
try {
7272
// fallback method just in case youtube changes things; it should never run and tests will fail
7373
// provides an url with "/user/NAME", that is inconsistent with stream and channel extractor
7474
return el.select("a[class*=\"yt-uix-tile-link\"]").first()
7575
.attr("abs:href");
76-
} catch (Throwable e) {
76+
} catch (Exception e) {
7777
throw new ParsingException("Could not get channel url", e);
7878
}
7979
}

0 commit comments

Comments
 (0)