fix(backend): catch other exceptions too when dealing with s3 "files"

This commit is contained in:
MiniDigger | Martin 2023-01-22 04:05:36 +01:00
parent 9fd36700b5
commit 64f9d7509b

View File

@ -45,7 +45,7 @@ public class ProjectFiles {
final String newProjectDir = this.getProjectDir(newOwner, slug);
try {
this.fileService.move(oldProjectDir, newProjectDir);
} catch (final IOException e) {
} catch (final Exception e) {
e.printStackTrace();
}
}
@ -55,7 +55,7 @@ public class ProjectFiles {
final String newProjectDir = this.getProjectDir(owner, newSlug);
try {
this.fileService.move(oldProjectDir, newProjectDir);
} catch (final IOException e) {
} catch (final Exception e) {
e.printStackTrace();
}
}
@ -65,7 +65,7 @@ public class ProjectFiles {
final String newVersionDir = this.getVersionDir(owner, slug, newVersionName);
try {
this.fileService.move(oldVersionDir, newVersionDir);
} catch (final IOException e) {
} catch (final Exception e) {
e.printStackTrace();
}
}