Only attempt to delete profile avatar if it exists

Fixes #486
This commit is contained in:
AsamK committed 2021-02-13 15:16:54 +01:00
1 parent 40fc712581
commit 3ed776e4cc
2 files changed
+4 -2

No files matched your search

@@ -40,7 +40,7 @@ public class UpdateProfileCommand implements LocalCommand {
: avatarPath == null ? null : Optional.of(new File(avatarPath));
m.setProfile(name, about, aboutEmoji, avatarFile);
} catch (IOException e) {
System.err.println("UpdateAccount error: " + e.getMessage());
System.err.println("Update profile error: " + e.getMessage());
return 3;
}