mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-27 23:40:36 +05:30
Fix unexpected error due to malformed url
This commit is contained in:
parent
6e82a80b26
commit
ddc7f3e33a
@ -114,7 +114,7 @@ public final class YoutubeStreamLinkHandlerFactory extends LinkHandlerFactory {
|
||||
try {
|
||||
url = Utils.stringToURL(urlString);
|
||||
} catch (final MalformedURLException e) {
|
||||
throw new IllegalArgumentException("The given URL is not valid");
|
||||
throw new ParsingException("The given URL is not valid", e);
|
||||
}
|
||||
|
||||
final String host = url.getHost();
|
||||
|
Loading…
x
Reference in New Issue
Block a user