From b99e2273ae8e089becbd2421678e596958fd0f3d Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 9 Jun 2023 08:40:58 +0200 Subject: [PATCH] fix: be more specific about replacing nan in python deser --- backend/windmill-worker/src/python_executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)