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)