File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -199,19 +199,19 @@ class Atomic: public AtomicBase {
199
199
PyObject *ptype, *pvalue, *ptraceback;
200
200
PyObject *pystr, *pystr_unic;
201
201
202
- std::string error_desc;
202
+ std::string error_desc;
203
203
PyErr_Fetch (&ptype, &pvalue, &ptraceback);
204
- if (pvalue == NULL ){
205
- error_desc = {" No information on the occured exception available" };
206
- }
207
- else {
208
- pystr = PyObject_Str (pvalue);
209
- pystr_unic = PyUnicode_AsEncodedString (pystr, " utf-8" , " ignore" );
210
- error_desc = {PyBytes_AsString (pystr_unic)};
211
-
212
- Py_XDECREF (pystr);
213
- Py_XDECREF (pystr_unic);
214
- }
204
+ if (pvalue == NULL ){
205
+ error_desc = {" No information on the occured exception available" };
206
+ }
207
+ else {
208
+ pystr = PyObject_Str (pvalue);
209
+ pystr_unic = PyUnicode_AsEncodedString (pystr, " utf-8" , " ignore" );
210
+ error_desc = {PyBytes_AsString (pystr_unic)};
211
+
212
+ Py_XDECREF (pystr);
213
+ Py_XDECREF (pystr_unic);
214
+ }
215
215
Py_XDECREF (ptype);
216
216
Py_XDECREF (pvalue);
217
217
Py_XDECREF (ptraceback);
You can’t perform that action at this time.
0 commit comments