From: Scott Baker Date: Tue, 10 Mar 2009 03:03:19 +0000 (+0000) Subject: fix bug when removing researchers X-Git-Tag: sfa-0.9-0@14641~603 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=2285513c5b56adb8fe647e86f98ca8351578dde1 fix bug when removing researchers --- diff --git a/cmdline/editRecord.py b/cmdline/editRecord.py index 97424854..9f757afa 100644 --- a/cmdline/editRecord.py +++ b/cmdline/editRecord.py @@ -130,7 +130,9 @@ def update_list(dict, listname, updates): if hrn.startswith("-"): real_hrn = hrn[1:] if real_hrn in list: - list.delete(real_hrn) + list.remove(real_hrn) + else: + print "Error:", real_hrn, "is not in researcher list:", list else: if not hrn in list: list.append(hrn)