Skip to content
This repository has been archived by the owner on Nov 19, 2017. It is now read-only.

Commit

Permalink
Fixed error message reffering to undefined var
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen van der Heijden committed Oct 11, 2016
1 parent 425a95e commit 2fa45a0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2fa45a0

Please sign in to comment.