rv = PyEval_CallObject((PyObject *)handlerRefCon, args);
Py_DECREF(args);
if ( rv == NULL ) {
- fprintf(stderr, "Drag: Exception in TrackingHandler\n");
+ PySys_WriteStderr("Drag: Exception in TrackingHandler\n");
+ PyErr_Print();
return -1;
}
i = -1;
rv = PyEval_CallObject((PyObject *)handlerRefCon, args);
Py_DECREF(args);
if ( rv == NULL ) {
- fprintf(stderr, "Drag: Exception in ReceiveHandler\n");
+ PySys_WriteStderr("Drag: Exception in ReceiveHandler\n");
+ PyErr_Print();
return -1;
}
i = -1;
rv = PyEval_CallObject(self->sendproc, args);
Py_DECREF(args);
if ( rv == NULL ) {
- fprintf(stderr, "Drag: Exception in SendDataHandler\n");
+ PySys_WriteStderr("Drag: Exception in SendDataHandler\n");
+ PyErr_Print();
return -1;
}
i = -1;
rv = PyEval_CallObject((PyObject *)handlerRefCon, args);
Py_DECREF(args);
if ( rv == NULL ) {
- fprintf(stderr, "Drag: Exception in TrackingHandler\\n");
+ PySys_WriteStderr("Drag: Exception in TrackingHandler\\n");
+ PyErr_Print();
return -1;
}
i = -1;
rv = PyEval_CallObject((PyObject *)handlerRefCon, args);
Py_DECREF(args);
if ( rv == NULL ) {
- fprintf(stderr, "Drag: Exception in ReceiveHandler\\n");
+ PySys_WriteStderr("Drag: Exception in ReceiveHandler\\n");
+ PyErr_Print();
return -1;
}
i = -1;
rv = PyEval_CallObject(self->sendproc, args);
Py_DECREF(args);
if ( rv == NULL ) {
- fprintf(stderr, "Drag: Exception in SendDataHandler\\n");
+ PySys_WriteStderr("Drag: Exception in SendDataHandler\\n");
+ PyErr_Print();
return -1;
}
i = -1;