From: garciadeblas Date: Fri, 21 Mar 2025 09:27:07 +0000 (+0100) Subject: Add additional instructions to set OSM_HOSTNAME in case of ClientException X-Git-Tag: v18.0.0~11 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=10e2cddfe8f77fbdcfeb57221127f5169ce05f1c;p=osm%2Fosmclient.git Add additional instructions to set OSM_HOSTNAME in case of ClientException Change-Id: I7b303737e0b7a19e442f84d80544384abee3671b Signed-off-by: garciadeblas --- diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 6d7a834..5d33183 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -369,6 +369,9 @@ def cli(): ) except ClientException as exc: print("ERROR: {}".format(exc)) + print( + 'Maybe "--hostname" option or OSM_HOSTNAME environment variable needs to be specified' + ) except (FileNotFoundError, PermissionError) as exc: print("Cannot open file: {}".format(exc)) except yaml.YAMLError as exc: