def getError(self): if self.i18nKey: error = _AdminCommandI18nError(self.i18nKey, self.args) else: error = _SimpleAdminCommandError(self.id, self.args) return error