Make the session command a little more friendly

Make the session command a little more friendly with an error
message.

Change-Id: I1598c0fe18c21c80836bf2f069695527807dd0f9
This commit is contained in:
Terry Howe
2014-06-17 14:24:33 -06:00
parent 74e34059d1
commit 52baf63eb0

View File

@@ -26,8 +26,9 @@ def make_session(opts):
def run_session(opts):
"""Create session."""
argument = opts.argument
if argument is None:
raise Exception("A path argument must be specified")
sess = make_session(opts)
filtration = service_filter.ServiceFilter('Identity')
print("Session: %s" % sess)