Skip to content

Commit

Permalink
⚡ Narrow any traceback relating to UnknownCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Jan 14, 2025
1 parent 706d5c7 commit c3c8833
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/braindrop/app/data/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ def collection(self, identity: int) -> Collection:
else self._collections[identity]
)
except KeyError:
raise self.UnknonwCollection(f"Unknown collection identity: {identity}")
raise self.UnknonwCollection(
f"Unknown collection identity: {identity}"
) from None

@property
def collections(self) -> list[Collection]:
Expand Down

0 comments on commit c3c8833

Please sign in to comment.