Univention Bugzilla – Attachment #10367: patch for listener, fixes removing SP from group for bug #47567
if sp not in data:
data[sp] = []
if sp in data[sp]:
data[sp].pop(sp)
data[sp].remove(sp)
with open(tmp_path, 'w+') as outfile:
json.dump(data, outfile)