WeaselJsonParser.__init__ no longer calls sys.exit(1) when libweaseljson.so/libweaseljson.dylib cannot be loaded. Instead it raises OSError, letting callers handle a missing native library gracefully. A regression test is added to test_python_bindings.py.
Closes #38
`WeaselJsonParser.__init__` no longer calls `sys.exit(1)` when `libweaseljson.so`/`libweaseljson.dylib` cannot be loaded. Instead it raises `OSError`, letting callers handle a missing native library gracefully. A regression test is added to `test_python_bindings.py`.
Replace sys.exit(1) in WeaselJsonParser.__init__ with an OSError so
callers can handle a missing libweaseljson gracefully. Also add a test
that verifies the constructor raises OSError for a non-existent build
directory.
Closes#38
andrew
scheduled this pull request to auto merge when all checks succeed 2026-06-29 18:38:43 +00:00
andrew
merged commit 82bdc8a080 into main2026-06-29 18:53:50 +00:00
andrew
deleted branch weaselbot/issue-382026-06-29 18:53:50 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #38
WeaselJsonParser.__init__no longer callssys.exit(1)whenlibweaseljson.so/libweaseljson.dylibcannot be loaded. Instead it raisesOSError, letting callers handle a missing native library gracefully. A regression test is added totest_python_bindings.py.