Skip to content

Commit ddc7f3e

Browse files
committed
Fix unexpected error due to malformed url
1 parent 6e82a80 commit ddc7f3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeStreamLinkHandlerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public String getId(final String theUrlString)
114114
try {
115115
url = Utils.stringToURL(urlString);
116116
} catch (final MalformedURLException e) {
117-
throw new IllegalArgumentException("The given URL is not valid");
117+
throw new ParsingException("The given URL is not valid", e);
118118
}
119119

120120
final String host = url.getHost();

0 commit comments

Comments
 (0)