From 2fa45a02933f081e357560fea43be2202d79fc88 Mon Sep 17 00:00:00 2001 From: Jeroen van der Heijden Date: Tue, 11 Oct 2016 22:42:39 +0200 Subject: [PATCH] Fixed error message reffering to undefined var --- main.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 603381f..15dcb27 100755 --- a/main.py +++ b/main.py @@ -286,15 +286,16 @@ async def set_remote_siridb_info(host, port): remote_siridb_info = SiriDBInfo(*result) if remote_siridb_info is None: - raise RuntimeError('Error retreiving SiriDB info from {}:{}'.format(other_address, other_port)) + raise RuntimeError( + 'Error retreiving SiriDB info from {}:{}'.format(host, port)) if not remote_siridb_info.dblist: - raise RuntimeError('No databases found in {}:{}'.format(other_address, other_port)) + raise RuntimeError('No databases found in {}:{}'.format(host, port)) if local_siridb_info.version != remote_siridb_info.version: - raise RuntimeError('Local version ({}) not equal to remote version ({})'.format( - local_siridb_info.version, - remote_siridb_info.version)) + raise RuntimeError( + 'Local version ({}) not equal to remote version ({})' + .format(local_siridb_info.version, remote_siridb_info.version)) def check_dbname(s):