import click
from osmclient import client
-from osmclient.common.exceptions import ClientException
+from osmclient.common.exceptions import ClientException, NotFound
from osmclient.cli_commands import (
alarms,
app_profile,
print(
'Maybe "--hostname" option or OSM_HOSTNAME environment variable needs to be specified'
)
- except ClientException as exc:
- print("ERROR: {}".format(exc))
+ except NotFound as exc:
+ print("NOT FOUND: {}".format(exc))
print(
'Maybe "--hostname" option or OSM_HOSTNAME environment variable needs to be specified'
)
+ except ClientException as exc:
+ print("ERROR: {}".format(exc))
except (FileNotFoundError, PermissionError) as exc:
print("Cannot open file: {}".format(exc))
except yaml.YAMLError as exc: