diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-05-03 10:49:30 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-05-03 12:00:44 +0200 |
commit | 2a9aaa92923ac154a714f69648e65f486d289020 (patch) | |
tree | 6928b3e07e34ecd2058606396848a7756d7fe167 | |
parent | f1d293b7bd44dee8eade5a31641bb9988ca4d593 (diff) |
numpy initialization: Remove superfluous PyErr_Clear()
Amends dcbe4810a6d8abe5a870d45ee5f3e51a52a1ad76.
Pick-to: 6.7
Task-number: PYSIDE-2404
Change-Id: Ib411094c6b3b430f7a84be957972d1e0c8ff94a8
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
-rw-r--r-- | sources/shiboken6/libshiboken/sbknumpy.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sources/shiboken6/libshiboken/sbknumpy.cpp b/sources/shiboken6/libshiboken/sbknumpy.cpp index 2e1c64d73..b6422e73f 100644 --- a/sources/shiboken6/libshiboken/sbknumpy.cpp +++ b/sources/shiboken6/libshiboken/sbknumpy.cpp @@ -29,10 +29,8 @@ static void initNumPy() // Expanded from macro "import_array" in __multiarray_api.h // Make sure to read about the magic defines PY_ARRAY_UNIQUE_SYMBOL etc., // when changing this or spreading the code over several source files. - if (_import_array() < 0) { + if (_import_array() < 0) PyErr_Print(); - PyErr_Clear(); - } } #endif // HAVE_NUMPY |