Review at https://gerrit.osmocom.org/4321
osmo_verify_transcript: add error handling for missing port
Change-Id: I1627c36cfb627e7f3a9b4d9f087bf10875ae0690
---
M osmopy/osmo_verify_transcript_common.py
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests
refs/changes/21/4321/1
diff --git a/osmopy/osmo_verify_transcript_common.py
b/osmopy/osmo_verify_transcript_common.py
index e4b5553..d8e9860 100644
--- a/osmopy/osmo_verify_transcript_common.py
+++ b/osmopy/osmo_verify_transcript_common.py
@@ -70,6 +70,9 @@
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
--
To view, visit https://gerrit.osmocom.org/4321
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1627c36cfb627e7f3a9b4d9f087bf10875ae0690
Gerrit-PatchSet: 1
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <[email protected]>