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: