New GitHub issue #118998 from sobolevn:<br>

<hr>

<pre>
# Bug report

This call is problematic: https://github.com/python/cpython/blob/f526314194f7fd15931025f8a4439c1765666e42/Modules/timemodule.c#L465

It can return `NULL` in theory.

These calls lines also can return `NULL`: https://github.com/python/cpython/blob/f526314194f7fd15931025f8a4439c1765666e42/Modules/timemodule.c#L477-L478

This error guard in the end will only show the last error: https://github.com/python/cpython/blob/f526314194f7fd15931025f8a4439c1765666e42/Modules/timemodule.c#L486-L489 Not the first one.

Refs https://github.com/python/cpython/issues/116714

I will send a PR adding our regular macro for the job.
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/118998">View on GitHub</a>
<p>Labels: type-bug, extension-modules</p>
<p>Assignee: sobolevn</p>