From 1b822b825182de71c603a7fc278563305b0b407e Mon Sep 17 00:00:00 2001 From: Yannik Enss Date: Tue, 13 Jul 2021 17:16:16 +0200 Subject: [PATCH] require commands to return 0 --- generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate.py b/generate.py index 8ca4744..5fb621d 100755 --- a/generate.py +++ b/generate.py @@ -132,7 +132,7 @@ def conf2top(top): print("Warning: Error opening", top["file"], file=sys.stderr) if "command" in top: - body = subprocess.run(top["command"], shell=True, text=True, capture_output=True).stdout + body = subprocess.run(top["command"], shell=True, text=True, capture_output=True, check=True).stdout return Top(top["title"], sender, body, protostub)