From e9f3aea7e691fb7ea4d97fe1b73889e276951b0b Mon Sep 17 00:00:00 2001 From: Daniel Robertson <52652357+endail@users.noreply.github.com> Date: Wed, 26 Jun 2024 22:14:46 +1000 Subject: [PATCH] Update generate.py --- scripts/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate.py b/scripts/generate.py index daff314..d146680 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -22,7 +22,7 @@ if result.returncode != 0: continue - result = subprocess.run(["ntpdig", "-j", "-t 5", endpoint], timeout=5) + result = subprocess.run(["ntpdig", "-j", "-t 5", endpoint], capture_output=True, text=True, timeout=5) print("ntpdig success?: " + "Yes" if result.returncode == 0 else "No") if result.returncode != 0: