diff --git a/ozgcloud-common-lib/src/main/java/de/ozgcloud/common/binaryfile/GrpcBinaryFileServerDownloader.java b/ozgcloud-common-lib/src/main/java/de/ozgcloud/common/binaryfile/GrpcBinaryFileServerDownloader.java index c85c178eb6ccd550dce8eac3b290e67fd815621d..70020e179a1c53540f64fb011255f4eb3e91f633 100644 --- a/ozgcloud-common-lib/src/main/java/de/ozgcloud/common/binaryfile/GrpcBinaryFileServerDownloader.java +++ b/ozgcloud-common-lib/src/main/java/de/ozgcloud/common/binaryfile/GrpcBinaryFileServerDownloader.java @@ -123,7 +123,7 @@ public class GrpcBinaryFileServerDownloader<T> { void handleSafety(ExceptionalRunnable runnable) { try { runnable.run(); - } catch (IOException e) { + } catch (Exception e) { IOUtils.closeQuietly(inputStream, e1 -> LOG.error("InputStream cannot be closed.", e1)); IOUtils.closeQuietly(outputStream, e1 -> LOG.error("OutputStream cannot be closed.", e1)); throw new TechnicalException("Error occurred during downloading file content download.", e);