From ea543491b6d327f2b0891d8e39626caecd86419f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 16 Jun 2016 14:44:37 +0800 Subject: [PATCH] Avoid potentially misleading error messages --- .../net/filebot/web/OpenSubtitlesSubtitleDescriptor.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/source/net/filebot/web/OpenSubtitlesSubtitleDescriptor.java b/source/net/filebot/web/OpenSubtitlesSubtitleDescriptor.java index b7720099..4971e0b7 100644 --- a/source/net/filebot/web/OpenSubtitlesSubtitleDescriptor.java +++ b/source/net/filebot/web/OpenSubtitlesSubtitleDescriptor.java @@ -3,7 +3,6 @@ package net.filebot.web; import static net.filebot.Logging.*; import java.io.File; -import java.io.IOException; import java.io.InputStream; import java.io.Serializable; import java.net.URL; @@ -13,7 +12,6 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; import java.util.zip.GZIPInputStream; -import java.util.zip.ZipException; import net.filebot.util.ByteBufferOutputStream; import net.filebot.util.FileUtilities; @@ -144,11 +142,7 @@ public class OpenSubtitlesSubtitleDescriptor implements SubtitleDescriptor, Seri // read and extract subtitle data ByteBufferOutputStream buffer = new ByteBufferOutputStream(getLength()); - try { - buffer.transferFully(new GZIPInputStream(in)); - } catch (ZipException e) { - throw new IOException("Download-Quota has been exceeded: " + e.getMessage()); - } + buffer.transferFully(new GZIPInputStream(in)); return buffer.getByteBuffer(); } }