Fire event at ``name`` if it is registered

def fire_event(self, name, exc=None, data=None):
        """Fire event at ``name`` if it is registered
        """
        if self._events and name in self._events:
            self._events[name].fire(exc=exc, data=data)