From bb59d1c9c9f32981261a722ea7b1f9af3fab7624 Mon Sep 17 00:00:00 2001 From: AsamK Date: Fri, 11 Sep 2020 09:23:30 +0200 Subject: [PATCH] Ignore error if downloading profile avatar fails --- src/main/java/org/asamk/signal/manager/Manager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/asamk/signal/manager/Manager.java b/src/main/java/org/asamk/signal/manager/Manager.java index d16aabe6..d96a1f21 100644 --- a/src/main/java/org/asamk/signal/manager/Manager.java +++ b/src/main/java/org/asamk/signal/manager/Manager.java @@ -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);