Skip to content

Commit

Permalink
Cope with resource fields we don't have descriptions for
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Nov 16, 2024
1 parent a7c1033 commit 3fa6cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apsw/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ def __exit__(self, *_) -> None:
continue
delta = getattr(usage, k) - getattr(self._usage, k)
if delta >= 0.001:
vals.append((self._descriptions[k], delta))
vals.append((self._descriptions.get(k, k), delta))

if self.db:
self.db.trace_v2(0, None, id=self)
Expand Down

0 comments on commit 3fa6cb0

Please sign in to comment.