diff --git a/backend/windmill-worker/src/python_executor.rs b/backend/windmill-worker/src/python_executor.rs index d5e9d1b946..3bc28f1cd7 100644 --- a/backend/windmill-worker/src/python_executor.rs +++ b/backend/windmill-worker/src/python_executor.rs @@ -340,7 +340,7 @@ def to_b_64(v: bytes): b64 = base64.b64encode(v) return b64.decode('ascii') -replace_nan = re.compile(r'\bnan\b', re.IGNORECASE) +replace_nan = re.compile(r'\bNaN\b') try: res = inner_script.main(**args) typ = type(res)