mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +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:
@@ -5618,7 +5618,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