From 9ccf870e4dcbd8f04e06cf7827adc6c93c9b9ac8 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 12 Feb 2019 22:57:05 -0600 Subject: [PATCH] do not error on user save --- onionr/onionrusers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/onionr/onionrusers.py b/onionr/onionrusers.py index 41bc7b6e..53f89d44 100755 --- a/onionr/onionrusers.py +++ b/onionr/onionrusers.py @@ -48,7 +48,10 @@ class OnionrUser: self.publicKey = publicKey if saveUser: - self._core.addPeer(publicKey) + try: + self._core.addPeer(publicKey) + except AssertionError: + pass self.trust = self._core.getPeerInfo(self.publicKey, 'trust') return