do not error on user save

master
Kevin Froman 2019-02-12 22:57:05 -06:00
parent 1be6bf1ec8
commit 9ccf870e4d
1 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,10 @@ class OnionrUser:
self.publicKey = publicKey self.publicKey = publicKey
if saveUser: if saveUser:
try:
self._core.addPeer(publicKey) 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