lib/junkie/patched/sjunkieex.rb in junkie-0.0.4 vs lib/junkie/patched/sjunkieex.rb in junkie-0.0.5

- old
+ new

@@ -54,9 +54,15 @@ episodes << episode end end episodes + + rescue IOError => e + # an ioerror is mostly raised on a temporary network problem + log.error("An IOError was raised, I will return empty array of episodes") + log.error(e) + return [] end private def get_page_data(link)