Skip to content

Commit

Permalink
Add cffi.VerificationError to caught exceptions in ffi_build version …
Browse files Browse the repository at this point in the history
…checks
  • Loading branch information
flacjacket committed Jan 28, 2024
1 parent d3f62f2 commit b38b6ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install wheel
run: pip install pywlroots-*.whl
run: |
pip install pywlroots-*.whl
pip install setuptools
- name: Check installation
shell: python
run: |
Expand Down
2 changes: 1 addition & 1 deletion wlroots/ffi_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def load_wlroots_version():

try:
lib = ffi.verify("#include <wlr/version.h>")
except (PermissionError, OSError):
except (PermissionError, OSError, VerificationError):
lib = importlib.import_module("wlroots").lib

return f"{lib.WLR_VERSION_MAJOR}.{lib.WLR_VERSION_MINOR}.{lib.WLR_VERSION_MICRO}" # type: ignore[attr-defined]
Expand Down

0 comments on commit b38b6ce

Please sign in to comment.