Skip to content

Commit 454309b

Browse files
Update Python/sysmodule.c
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent ee47f24 commit 454309b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/sysmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2132,7 +2132,8 @@ sys__clear_type_cache_impl(PyObject *module)
21322132
if (PyErr_WarnEx(PyExc_DeprecationWarning,
21332133
"sys._clear_type_cache() is deprecated and scheduled for removal in a "
21342134
"future version. Use the more general sys._clear_internal_caches() "
2135-
"function instead.", 1)) {
2135+
"function instead.", 1) < 0)
2136+
{
21362137
return NULL;
21372138
}
21382139
PyType_ClearCache();

0 commit comments

Comments
 (0)