We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6dba58 commit 7ce519bCopy full SHA for 7ce519b
netfoundry/demo.py
@@ -138,7 +138,7 @@ def main():
138
elif args.command == "delete":
139
print("Network \"{network_name}\" does not exist.".format(network_name=network_name))
140
sys.exit()
141
- else:
+ else: # catch unhandled cases if the script changes in the future, not currently possible to match 'else' because only create, delete are valid args.
142
raise Exception("ERROR: failed to find a network named \"{name}\" and no valid command in \"{command}\"."
143
+" Need \"create\" (default) or \"delete\".".format(name=network_name, command=args.command))
144
0 commit comments