Skip to content

fix(workspace): prevent invalid exception when opening prefix in RW m…#587

Merged
wskozlowski merged 1 commit into
mainfrom
bugfix/issue_334
Dec 6, 2025
Merged

fix(workspace): prevent invalid exception when opening prefix in RW m…#587
wskozlowski merged 1 commit into
mainfrom
bugfix/issue_334

Conversation

@adrian-zawadzki

@adrian-zawadzki adrian-zawadzki commented Dec 5, 2025

Copy link
Copy Markdown
Collaborator

fix(workspace): prevent invalid exception when opening prefix in RW mode fails

Fixed issue #334 where opening a locked prefix in read-write mode would throw exception and Workspace open silences exception and returns null. Right now null is returned only when PrefixNotFoundException is thrown.

Changes:

  • Added new exception type PrefixNotFoundException for clearer error handling
  • Modified PrefixCatalog, Workspace, and PyEnumType to throw PrefixNotFoundException instead of InputException when prefix does not exist
  • Improved error handling in Workspace::open() to properly clean up incomplete files for all exception types while preserving the original exception for non-prefix-not-found cases

Fixes #334

…ode fails

Fixed issue #334 where opening a locked prefix in read-write mode
would throw exception and Workspace open silences exception and returns null.
Right now null is returned only when PrefixNotFoundException is thrown.

Changes:
- Added new exception type PrefixNotFoundException for clearer error handling
- Modified PrefixCatalog, Workspace, and PyEnumType to throw PrefixNotFoundException
  instead of InputException when prefix does not exist
- Improved error handling in Workspace::open() to properly clean up incomplete
  files for all exception types while preserving the original exception for
  non-prefix-not-found cases

Fixes #334
@wskozlowski wskozlowski merged commit 4e419ef into main Dec 6, 2025
3 checks passed
@wskozlowski wskozlowski deleted the bugfix/issue_334 branch December 6, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants