diff --git a/Reddit.own b/Reddit.own index e3f32ca..411e99d 100644 --- a/Reddit.own +++ b/Reddit.own @@ -20,6 +20,6 @@ class Reddit { def fetchSubreddits(subreddits, maxItems = 5) = stream(subreddits) - .flatMap(def(r) = this.fetchSubreddit(r, maxItems)) + .flatMap(def(r) = try(def() = this.fetchSubreddit(r, maxItems), def(clazz, cause) = [])) .toArray() -} \ No newline at end of file +}