diff --git a/haas-java-client/src/main/java/cz/it4i/fiji/haas_java_client/HaaSFileTransferImp.java b/haas-java-client/src/main/java/cz/it4i/fiji/haas_java_client/HaaSFileTransferImp.java index 2695e613daca19fda79e29eb61b9a594a7347db6..8a011d6c378833b2d9b3b160af6431ca61af0651 100644 --- a/haas-java-client/src/main/java/cz/it4i/fiji/haas_java_client/HaaSFileTransferImp.java +++ b/haas-java-client/src/main/java/cz/it4i/fiji/haas_java_client/HaaSFileTransferImp.java @@ -45,7 +45,6 @@ class HaaSFileTransferImp implements HaaSFileTransfer { try (InputStream is = file.getInputStream()) { scpClient.upload(is, destFile, file.getLength(), file.getLastTime(), progress); - } catch (JSchException | IOException e) { throw new HaaSClientException("An upload of " + file + " to " + destFile + @@ -64,9 +63,6 @@ class HaaSFileTransferImp implements HaaSFileTransfer { fileName + "'"; scpClient.download(fileToDownload, rFile, progress); } - catch (final InterruptedIOException e) { - throw e; - } catch (JSchException | IOException e) { throw new HaaSClientException("A download of " + fileName + " to " + workDirectory + " failed: " + e.getMessage());