1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-10-10 15:30:55 +00:00
This commit is contained in:
KiekerJan 2024-01-10 20:06:26 +01:00 committed by GitHub
commit 67a0b3c3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -965,7 +965,10 @@ def run_and_output_changes(env, pool):
cache_fn = "/var/cache/mailinabox/status_checks.json"
if os.path.exists(cache_fn):
with open(cache_fn, 'r') as f:
prev = json.load(f)
try:
prev = json.load(f)
except json.JSONDecodeError:
prev = []
# Group the serial output into categories by the headings.
def group_by_heading(lines):