Skip to content

Commit

Permalink
Do not raise when skipping peers client loop
Browse files Browse the repository at this point in the history
  • Loading branch information
EggPool committed Aug 18, 2019
1 parent af71527 commit 620c4e0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions peershandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@
@EggPoolNet
"""

import connections
import json
import os
import re
import shutil
# import re
import sys
import threading
import time
import shutil

import socks

import connections
import regnet

from essentials import most_common_dict, percentage_in

__version__ = "0.0.16"
Expand Down Expand Up @@ -508,8 +507,12 @@ def client_loop(self, node, this_target):
self.peers_test(self.peerfile, self.peer_dict, strict=True)

except Exception as e:
self.app_log.warning(f"Status: Manager run skipped due to error: {e}")
raise
self.app_log.warning(f"Status: peers client loop skipped due to error: {e}")
# raise
"""We do not want to raise here, since the rest of the calling method would be skipped also.
It's ok to skip this part only
The calling method has other important subsequent calls that have to be done.
"""

def status_log(self):
"""Prints the peers part of the node status"""
Expand Down

0 comments on commit 620c4e0

Please sign in to comment.