Skip to content

Commit

Permalink
fix: close cache after generating metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
egvimo committed Oct 20, 2023
1 parent 902bad2 commit f6f9361
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apt_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def generate_metrics(root_dir: str = '/') -> bytes:
_write_autoremove_pending(registry, cache)
_write_reboot_required(registry, root_dir)

cache.close()

return generate_latest(registry)


Expand Down

0 comments on commit f6f9361

Please sign in to comment.