aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/set.py
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2009-06-24 17:24:25 -0400
committerChris Ball <cjb@laptop.org>2009-06-24 17:24:25 -0400
commitd99caee28aaad87750571542f20bec2de091d5a0 (patch)
treeccefde44dbd41d1a469f42828a5176fbcfbc9290 /becommands/set.py
parent665e64fbe8fea91f68be42cbbda79082d9a58c30 (diff)
parent37195a33108299504f8d37042dec06df0540d0d2 (diff)
downloadbugseverywhere-d99caee28aaad87750571542f20bec2de091d5a0.tar.gz
Merge with W. Trevor King's tree.
Diffstat (limited to 'becommands/set.py')
-rw-r--r--becommands/set.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/becommands/set.py b/becommands/set.py
index b8a125e..c8bbe4f 100644
--- a/becommands/set.py
+++ b/becommands/set.py
@@ -63,12 +63,7 @@ def execute(args, test=False):
msg += '\n '.join(bd.settings_properties)
raise cmdutil.UserError(msg)
old_setting = bd.settings.get(args[0])
- try:
- setattr(bd, args[0], args[1])
- except bugdir.InvalidValue, e:
- bd.settings[args[0]] = old_setting
- bd.save()
- raise cmdutil.UserError(e)
+ setattr(bd, args[0], args[1])
else:
del bd.settings[args[0]]
bd.save()