in src/key_server_common.py [0:0]
def safe_remove(self, element, match): """ Helper to remove an element only if it exists. """ if element.find(match): element.remove(match)