Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
f468b070
Unverified
Commit
f468b070
authored
Sep 27, 2023
by
Ralf W. Grosse-Kunstleve
Committed by
GitHub
Sep 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 2 missing `throw error_already_set();` (#4863)
Fixes oversights in PR #4570.
parent
7e5edbc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
include/pybind11/detail/internals.h
+2
-0
No files found.
include/pybind11/detail/internals.h
View file @
f468b070
...
...
@@ -451,6 +451,7 @@ inline object get_python_state_dict() {
#endif
if
(
!
state_dict
)
{
raise_from
(
PyExc_SystemError
,
"pybind11::detail::get_python_state_dict() FAILED"
);
throw
error_already_set
();
}
return
state_dict
;
}
...
...
@@ -463,6 +464,7 @@ inline internals **get_internals_pp_from_capsule(handle obj) {
void
*
raw_ptr
=
PyCapsule_GetPointer
(
obj
.
ptr
(),
/*name=*/
nullptr
);
if
(
raw_ptr
==
nullptr
)
{
raise_from
(
PyExc_SystemError
,
"pybind11::detail::get_internals_pp_from_capsule() FAILED"
);
throw
error_already_set
();
}
return
static_cast
<
internals
**>
(
raw_ptr
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment