Skip to content

Commit 8a3078a

Browse files
tab/space problems again
1 parent d8fe81f commit 8a3078a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

devs/adevs_python.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -199,19 +199,19 @@ class Atomic: public AtomicBase {
199199
PyObject *ptype, *pvalue, *ptraceback;
200200
PyObject *pystr, *pystr_unic;
201201

202-
std::string error_desc;
202+
std::string error_desc;
203203
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+
}
215215
Py_XDECREF(ptype);
216216
Py_XDECREF(pvalue);
217217
Py_XDECREF(ptraceback);

0 commit comments

Comments
 (0)