AttachmentsToChat #145

Merged
RecentRunner merged 35 commits from AttachmentsToChat into main 2026-04-07 06:53:07 -06:00
3 changed files with 6 additions and 3 deletions
Showing only changes of commit 12c7384951 - Show all commits

View File

@@ -48,7 +48,10 @@ public class AvatarStorageService {
if (user.getAvatarUrl() == null || user.getAvatarUrl().isBlank()) {
return;
}
Files.deleteIfExists(resolveStoredAvatarPath(user.getAvatarUrl()));
try {
Files.deleteIfExists(resolveStoredAvatarPath(user.getAvatarUrl()));
} catch (IllegalArgumentException ignored) {
}
}
public String toOwnerAvatarUrl(User user) {

View File

@@ -231,7 +231,7 @@ public class PetService {
}
try {
catalogImageStorageService.deletePetImage(storedImagePath);
} catch (IOException ignored) {
} catch (IOException | IllegalArgumentException ignored) {
}
}

View File

@@ -143,7 +143,7 @@ public class ProductService {
}
try {
catalogImageStorageService.deleteProductImage(storedImagePath);
} catch (IOException ignored) {
} catch (IOException | IllegalArgumentException ignored) {
}
}