Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Jul 12, 2022
1 parent f0a0f06 commit 2aa6df3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- os: windows-latest
python-version: "3.10"
- os: macos-latest
python-version: "3.7"
python-version: "3.6"
- os: ubuntu-latest
python-version: "pypy-3.7"
fail-fast: false
Expand All @@ -30,5 +30,5 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip wheel
- run: python -m pip install --prefer-binary -v -e .[test]
- run: python -m pip install -v -e .[test]
- run: python -m pytest
2 changes: 1 addition & 1 deletion src/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ PYBIND11_MODULE(_core, m) {
[](GenEvent &self, const unsigned long i) -> double {
try {
return self.weight(i);
} catch (std::runtime_error) {
} catch (const std::runtime_error &) {
throw py::index_error();
}
},
Expand Down

0 comments on commit 2aa6df3

Please sign in to comment.