diff options
author | Chris Ball <cjb@laptop.org> | 2009-06-24 17:24:25 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2009-06-24 17:24:25 -0400 |
commit | d99caee28aaad87750571542f20bec2de091d5a0 (patch) | |
tree | ccefde44dbd41d1a469f42828a5176fbcfbc9290 /becommands/set.py | |
parent | 665e64fbe8fea91f68be42cbbda79082d9a58c30 (diff) | |
parent | 37195a33108299504f8d37042dec06df0540d0d2 (diff) | |
download | bugseverywhere-d99caee28aaad87750571542f20bec2de091d5a0.tar.gz |
Merge with W. Trevor King's tree.
Diffstat (limited to 'becommands/set.py')
-rw-r--r-- | becommands/set.py | 7 |
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() |