Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Silently ignore exceptions for PyObject_GetAttrString calls #176

Merged
merged 6 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/github-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
architecture: [x86_64, arm64]
platform: [manylinux2014, musllinux_1_1]

steps:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
env:
CIBW_ARCHS_MACOS: ${{ matrix.architecture }}
CIBW_PLATFORM: ${{ matrix.platform }} # Set platform based on matrix
CIBW_BUILD_VERBOSITY: 1

- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
=========

1.6.1 (2024-10-31)

- Fix error not cleared from an internal PyObject_GetAttrString call

1.6.0 (2023-12-07)

- Drop support 2.7-3.5 and clean backward compatible code (pull/152)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

HOMEPAGE = "https://github.com/sumerc/yappi"
NAME = "yappi"
VERSION = "1.6.0"
VERSION = "1.6.1"
_DEBUG = False # compile/link code for debugging
_PROFILE = False # profile yappi itself

Expand Down
4 changes: 4 additions & 0 deletions yappi/_yappi.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,12 @@ _code2pit(PyFrameObject *fobj, uintptr_t current_tag)
if (class_name) {
pit->name = PyStr_FromFormat("%s.%s", PyStr_AS_CSTRING(class_name), PyStr_AS_CSTRING(cobj->co_name));
Py_DECREF(class_name);
} else {
PyErr_Clear();
}
Py_DECREF(class_obj);
} else {
PyErr_Clear();
}
}
}
Expand Down
Loading