Unverified Commit 1fb529fb authored by Mygod's avatar Mygod Committed by GitHub

Ignore malformed URLs in subscription

parent e4557b95
...@@ -46,9 +46,9 @@ class Subscription { ...@@ -46,9 +46,9 @@ class Subscription {
fun fromReader(reader: Reader): Subscription { fun fromReader(reader: Reader): Subscription {
urls.clear() urls.clear()
reader.useLines { reader.useLines {
for (line in it) { for (line in it) try {
urls.add(URL(line)) urls.add(URL(line))
} } catch (_: Exception) { }
} }
return this return this
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment