<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def disableEffect(self, name):
 """Disable an effect."""

        try:
            del self._effects[name]
            self.__getattribute__(
                '_effectdisable_%s' % name.replace("-", "_")
            )()
        except KeyError:
            pass
        except AttributeError:
            pass