def dispatch(self, event): if event.src_path is None: event._src_path = "/dev/null" PatternMatchingEventHandler.dispatch(self, event)