File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
third_party/intel/backend Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -306,13 +306,10 @@ extern "C" EXPORT_FUNC PyObject *load_binary(PyObject *args) {
306
306
n_spills , n_max_threads );
307
307
308
308
} catch (const std ::exception & e ) {
309
- char err [1024 ] = {0 };
310
- std ::string_view error_str (e .what ());
311
- strncat (err , error_str .data (), std ::min (error_str .size (), size_t (1024 )));
312
309
PyGILState_STATE gil_state ;
313
310
gil_state = PyGILState_Ensure ();
314
- PyErr_SetString (PyExc_RuntimeError , err );
315
- std ::cerr << "Error during Intel loadBinary: " << err << std ::endl ;
311
+ PyErr_SetString (PyExc_RuntimeError , e . what () );
312
+ std ::cerr << "Error during Intel loadBinary: " << e . what () << std ::endl ;
316
313
PyGILState_Release (gil_state );
317
314
return NULL ;
318
315
}
You can’t perform that action at this time.
0 commit comments