diff --git a/funkwhale_cli/cli/auth.py b/funkwhale_cli/cli/auth.py
index 7d96aa03b2cd9510d33579e745d0c61d0460ab0b..46a493c45aa6c62c3960c7ecc92d305badb3797c 100644
--- a/funkwhale_cli/cli/auth.py
+++ b/funkwhale_cli/cli/auth.py
@@ -57,7 +57,10 @@ class lazy_credential:
 def init_keyring():
     # small hack to fix some weird issues with pyinstaller and keyring
     # there seems to be a cache issue somewhere
-    del keyring.backend.get_all_keyring.__wrapped__.always_returns
+    try:
+        del keyring.backend.get_all_keyring.__wrapped__.always_returns
+    except AttributeError:
+        pass
     keyring.core.init_backend()
     # /end of hack