From: David ‘Bombe’ Roden Date: Thu, 14 Apr 2011 04:35:48 +0000 (+0200) Subject: Catch and log all exceptions occuring during parsing. X-Git-Tag: 0.7^2~2^2~73 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bd7db46eadcf5ec44550722966b04bb77a32fd76;p=Sone.git Catch and log all exceptions occuring during parsing. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index 6f89fe5..8d0d1f2 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -17,7 +17,6 @@ package net.pterodactylus.sone.core; -import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.util.ArrayList; @@ -184,8 +183,8 @@ public class SoneDownloader extends AbstractService { } } return parsedSone; - } catch (IOException ioe1) { - logger.log(Level.WARNING, "Could not parse Sone from " + requestUri + "!", ioe1); + } catch (Exception e1) { + logger.log(Level.WARNING, "Could not parse Sone from " + requestUri + "!", e1); } finally { Closer.close(soneInputStream); soneBucket.free();