require commands to return 0
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user