def try_remove(self, needle, haystack):
        try:
            haystack.remove(needle)
        except ValueError:
            pass
Gracefully try to remove an item from an array. It not found, fire no
dataset/ETHPy150Open markjones112358/dmenu-extended/dmenu_extended.py/dmenu.try_remove