Fix bug 2373 - Remove old code from v1 client in ns_show
[osm/osmclient.git] / osmclient / cli_commands / utils.py
index 9ec03f6..25fc21a 100755 (executable)
@@ -48,6 +48,8 @@ def check_client_version(obj, what, version="sol005"):
         message = f"The following commands or options are only supported with the version v1 of OSM SOL005': {what}"
     elif version == "sol005_v2":
         message = f"The following commands or options are only supported with the version v2 of OSM SOL005': {what}"
+    else:
+        message = f"The following commands or options are only supported with the version {version} of OSM SOL005': {what}"
     fullclassname = obj.__module__ + "." + obj.__class__.__name__
     if fullclassname != "osmclient.{}.client.Client".format(version):
         raise ClientException(message)