mirror of
https://github.com/markqvist/LXMF.git
synced 2025-07-27 09:05:15 -04:00
Error handling
This commit is contained in:
parent
776e72d0ba
commit
38bbf19421
1 changed files with 6 additions and 2 deletions
|
@ -1565,7 +1565,11 @@ class LXMRouter:
|
||||||
|
|
||||||
for peer in culled_peers:
|
for peer in culled_peers:
|
||||||
RNS.log("Removing peer "+RNS.prettyhexrep(peer)+" due to excessive unreachability", RNS.LOG_WARNING)
|
RNS.log("Removing peer "+RNS.prettyhexrep(peer)+" due to excessive unreachability", RNS.LOG_WARNING)
|
||||||
|
try:
|
||||||
|
# TODO: Check this and add "if in" clause
|
||||||
self.peers.pop(peer_id)
|
self.peers.pop(peer_id)
|
||||||
|
except Exception as e:
|
||||||
|
RNS.log("Error while removing peer "+RNS.prettyhexrep(peer_id)+". The contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
|
||||||
|
|
||||||
def fail_message(self, lxmessage):
|
def fail_message(self, lxmessage):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue