Ignore error if downloading profile avatar fails

This commit is contained in:
AsamK 2020-09-11 09:23:30 +02:00
parent 2ccff8f51d
commit bb59d1c9c9

View file

@ -461,8 +461,8 @@ public class Manager implements Closeable {
File avatarFile = null;
try {
avatarFile = encryptedProfile.getAvatar() == null ? null : retrieveProfileAvatar(address, encryptedProfile.getAvatar(), profileKey);
} catch (AssertionError e) {
System.err.println("Failed to retrieve profile avatar: " + e.getMessage());
} catch (Throwable e) {
System.err.println("Failed to retrieve profile avatar, ignoring: " + e.getMessage());
}
ProfileCipher profileCipher = new ProfileCipher(profileKey);