do not error on user save

This commit is contained in:
Kevin Froman 2019-02-12 22:57:05 -06:00
parent 1be6bf1ec8
commit 9ccf870e4d

View File

@ -48,7 +48,10 @@ class OnionrUser:
self.publicKey = publicKey self.publicKey = publicKey
if saveUser: if saveUser:
self._core.addPeer(publicKey) try:
self._core.addPeer(publicKey)
except AssertionError:
pass
self.trust = self._core.getPeerInfo(self.publicKey, 'trust') self.trust = self._core.getPeerInfo(self.publicKey, 'trust')
return return