mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 13:03:02 +02:00
statd: silence 'show firewall' when firewall is disabled
Fixes #1416 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -5527,7 +5527,8 @@ def main():
|
||||
global UNIT_TEST
|
||||
|
||||
try:
|
||||
json_data = json.load(sys.stdin)
|
||||
raw = sys.stdin.read()
|
||||
json_data = json.loads(raw) if raw.strip() else {}
|
||||
except json.JSONDecodeError:
|
||||
print("Error, invalid JSON input")
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user