diff --git a/api/tacticalrmm/alerts/models.py b/api/tacticalrmm/alerts/models.py index e8163347b1..98743a4feb 100644 --- a/api/tacticalrmm/alerts/models.py +++ b/api/tacticalrmm/alerts/models.py @@ -722,7 +722,7 @@ def parse_script_args(self, args: List[str]) -> List[str]: for string, model, prop in re.findall(RE_DB_VALUE, arg): value = get_db_value(string=f"{model}.{prop}", instance=self) - if value != None: + if value is not None: temp_arg = temp_arg.replace(string, str(value)) temp_args.append(temp_arg)