Commit da885d59 authored by Vincent Castellano's avatar Vincent Castellano

Clean up msgs and newlines

parent 36d5465d
......@@ -483,7 +483,8 @@ void py_our_id (int id) {
arglist = Py_BuildValue("(i)", id);
result = PyEval_CallObject(_py_our_id, arglist);
Py_DECREF(arglist); if(result == NULL)
Py_DECREF(arglist);
if(result == NULL)
PyErr_Print();
else if(PyUnicode_Check(result))
logprintf ("python: %s\n", PyBytes_AsString(PyUnicode_AsASCIIString(result)));
......@@ -1338,6 +1339,6 @@ void py_init (const char *file) {
python_loaded = 1;
PyDateTime_IMPORT;
logprintf("Python Initialized");
logprintf("Python Initialized\n");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment