Skip to content
This repository was archived by the owner on Jan 29, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 11 additions & 19 deletions pathfinding_service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import gevent
from eth_utils import is_checksum_address
from matrix_client.errors import MatrixRequestError
from web3 import Web3

from pathfinding_service.model import TokenNetwork
Expand All @@ -27,24 +26,17 @@


def error_handler(context, exc_info):
if exc_info[0] == MatrixRequestError:
log.error(
'Can not connect to the matrix system. Please check your settings. '
'Detailed error message: %s', exc_info[1],
)
sys.exit()
else:
log.critical(
'Unhandled exception. Terminating the program...'
'Please report this issue at '
'https://github.com/raiden-network/raiden-pathfinding-service/issues',
)
traceback.print_exception(
etype=exc_info[0],
value=exc_info[1],
tb=exc_info[2],
)
sys.exit()
log.critical(
'Unhandled exception. Terminating the program...'
'Please report this issue at '
'https://github.com/raiden-network/raiden-pathfinding-service/issues',
)
traceback.print_exception(
etype=exc_info[0],
value=exc_info[1],
tb=exc_info[2],
)
sys.exit(1)


class PathfindingService(gevent.Greenlet):
Expand Down