From c83e6870901ea8750bd89a83ab008ffb3df8adc9 Mon Sep 17 00:00:00 2001 From: Paul Lange Date: Wed, 16 Jan 2019 11:43:15 +0100 Subject: [PATCH] Remove matrix exception --- pathfinding_service/service.py | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/pathfinding_service/service.py b/pathfinding_service/service.py index 2cffeab..1a4621c 100644 --- a/pathfinding_service/service.py +++ b/pathfinding_service/service.py @@ -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 @@ -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):