Commit b9016210 authored by Jochen Sprickerhof's avatar Jochen Sprickerhof Committed by Holger Levsen
Browse files

rdn stats: ignore cache write errors



(cherry picked from commit f672f6b4bb0d27fd70fe8cc11096901c39099976)
Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent 57d0fca7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -172,8 +172,11 @@ def main() -> None:
    messages_packages = {k: v for k, v in messages_packages.items() if v}  # Remove empty categories

    if args.cache.name:
        try:
            with open(args.cache, "wb") as fb:
                dump((hash_key, cache_new), fb)
        except OSError:
            pass

    db_size = path.getsize(args.db)
    with args.datefile.open("w") as outfile: