def writeDebugReport(self): if hasattr(self, "pyfile"): dump = BaseThread.writeDebugReport(self, self.plugin.__name__, pyfile=self.pyfile) else: dump = BaseThread.writeDebugReport(self, self.plugin.__name__, plugin=self.plugin) return dump