summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-08-06 18:46:19 +0000
committerJeremy Katz <katzj@redhat.com>2003-08-06 18:46:19 +0000
commit89c6f6f6b10c157731e8aa6cd3ab390dc2388f5e (patch)
tree5c0dc120fb6d0b1669d0653d782b8f78508f5cfd /kickstart.py
parent03f4b4ce2fc26a4ad4d3e5e43a93838cb0566c8e (diff)
downloadanaconda-89c6f6f6b10c157731e8aa6cd3ab390dc2388f5e.tar.gz
anaconda-89c6f6f6b10c157731e8aa6cd3ab390dc2388f5e.tar.xz
anaconda-89c6f6f6b10c157731e8aa6cd3ab390dc2388f5e.zip
right, some handlers are None, we don't want that to be bogus (#101733, #101621)
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/kickstart.py b/kickstart.py
index 16e2ff454..00a7a959f 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -683,8 +683,9 @@ class KickstartBase(BaseInstallClass):
n = string.strip (n)
packages.append(n)
elif where == "commands":
- if handlers[args[0]]:
- handlers[args[0]](id, args[1:])
+ if handlers.has_key(args[0]):
+ if handlers[args[0]] is not None:
+ handlers[args[0]](id, args[1:])
else:
# unrecognized command
raise SyntaxError, "Unrecognized ks command: %s\nOn the line: %s" % (args[0], n)