def _before_is_valid(self, form):
        if form["id"] == "general":
            return True

        if hasattr(self, "check_%s" % form["id"]):
            if not getattr(self, "check_%s" % form["id"])(self.account):
                return False
            return True

        extra_forms = events.raiseQueryEvent(
            "CheckExtraAccountForm", self.account, form)
        if extra_forms in False:
            return False
        return True
dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/forms/account.py/AccountForm._before_is_valid/swapped operands of `in`