X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=cmdline%2FeditRecord.py;h=9f757afae3e6019931c2c3eb32e3de5e32e1ef75;hb=2285513c5b56adb8fe647e86f98ca8351578dde1;hp=97424854cc069d92821c3307c7ada979c3a56b79;hpb=c090c85ae491cab256639d99566f8d6e4e1a67ba;p=sfa.git 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)