Skip to content

Commit

Permalink
suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
amisiorek-akamai committed Dec 19, 2023
1 parent d0c4cf8 commit a232258
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions linodecli/plugins/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,13 @@ def call(args, context):
sys.exit(0)

# make a client, but only if we weren't printing help and endpoint is valid
if not "--help" in args:
if "--help" not in args:
try:
client = MetadataClient()
except ConnectTimeout:
print(
raise ConnectionError(
"Can't access Metadata service. Please verify that you are inside a Linode."
)
sys.exit(0)
else:
print_help(parser)
sys.exit(0)
Expand Down

0 comments on commit a232258

Please sign in to comment.