summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2014-03-14 15:20:01 -0700
committerAndy Grover <agrover@redhat.com>2014-03-14 15:20:01 -0700
commit429a4884282bc7dced11f07ee3d1f699fdabbef8 (patch)
treeeddb419d7b29ccfa136213898316187689043485
parentfb0bd63e02d6e2edab944141898f44ca84dc2bff (diff)
downloadconfigshell-fb-429a4884282bc7dced11f07ee3d1f699fdabbef8.tar.gz
Don't use elif when previous conditional returns
To follow-on Christophe's previous fix, now that the previous conditional returns, it's a little easier to follow (IMHO) if the next conditional is an 'if' instead of an 'elif'. Also, add an empty line. Signed-off-by: Andy Grover <agrover@redhat.com>
-rw-r--r--configshell/node.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/configshell/node.py b/configshell/node.py
index 2b35daa..bf5d534 100644
--- a/configshell/node.py
+++ b/configshell/node.py
@@ -1134,7 +1134,8 @@ class ConfigNode(object):
msg += " - %s\n" % self.get_command_syntax(command)[0]
self.shell.con.epy_write(msg)
return
- elif topic not in commands:
+
+ if topic not in commands:
raise ExecutionError("Cannot find help topic %s." % topic)
syntax, comments, defaults = self.get_command_syntax(topic)