Skip to content

Commit 7ce519b

Browse files
committed
clarify the ppurpose of the else condition
1 parent a6dba58 commit 7ce519b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netfoundry/demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def main():
138138
elif args.command == "delete":
139139
print("Network \"{network_name}\" does not exist.".format(network_name=network_name))
140140
sys.exit()
141-
else:
141+
else: # catch unhandled cases if the script changes in the future, not currently possible to match 'else' because only create, delete are valid args.
142142
raise Exception("ERROR: failed to find a network named \"{name}\" and no valid command in \"{command}\"."
143143
+" Need \"create\" (default) or \"delete\".".format(name=network_name, command=args.command))
144144

0 commit comments

Comments
 (0)