Bug 926607 - Make sure disabled category exists before dumping commands in it, r=jgriffin, DONTBUILD, a=NPOTB

This commit is contained in:
Andrew Halberstadt 2013-10-15 14:25:43 -04:00
parent 57881152b6
commit 96089c4e05

View File

@ -183,7 +183,7 @@ class CommandAction(argparse.Action):
group.add_argument(command, help=description,
action='store_true')
if disabled_commands:
if disabled_commands and 'disabled' in r.categories:
title, description, _priority = r.categories['disabled']
group = parser.add_argument_group(title, description)
for c in disabled_commands: