osmo_verify_transcript: add error handling for missing port

Change-Id: I1627c36cfb627e7f3a9b4d9f087bf10875ae0690
This commit is contained in:
Neels Hofmeyr 2017-10-18 02:09:08 +02:00
parent 4e8d6eec5c
commit 7b5203f6aa
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ class Interact:
self.verbose = verbose
self.update = update
if not port:
raise Exception("You need to provide port number to connect to")
def connect(self):
assert self.socket is None
retries = 30