From 2285513c5b56adb8fe647e86f98ca8351578dde1 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Tue, 10 Mar 2009 03:03:19 +0000 Subject: [PATCH] fix bug when removing researchers --- cmdline/editRecord.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.43.0