]> nmode's Git Repositories - signal-cli/commitdiff
Ignore error if downloading profile avatar fails
authorAsamK <asamk@gmx.de>
Fri, 11 Sep 2020 07:23:30 +0000 (09:23 +0200)
committerAsamK <asamk@gmx.de>
Fri, 11 Sep 2020 07:23:30 +0000 (09:23 +0200)
src/main/java/org/asamk/signal/manager/Manager.java

index d16aabe60a81cc3dde5411f113b6b2667275e697..d96a1f210267574648513becfefef1fb264007fa 100644 (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);