mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-12-21 06:51:19 +08:00
fix(backend): catch other exceptions too when dealing with s3 "files"
This commit is contained in:
parent
9fd36700b5
commit
64f9d7509b
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user