|
@@ -243,7 +243,12 @@ inline bool Buffered_DatagramConnection::SendMessage(const Datagram &msg)
|
|
|
nativenet_cat.warning() << "Buffered_DatagramConnection::SendMessage->Error On Write--Out Buffer = " << _Writer.AmountBuffered() << "\n";
|
|
nativenet_cat.warning() << "Buffered_DatagramConnection::SendMessage->Error On Write--Out Buffer = " << _Writer.AmountBuffered() << "\n";
|
|
|
#ifdef HAVE_PYTHON
|
|
#ifdef HAVE_PYTHON
|
|
|
ostringstream s;
|
|
ostringstream s;
|
|
|
|
|
+
|
|
|
|
|
+#if PY_MAJOR_VERSION >= 3
|
|
|
PyObject *exc_type = PyExc_ConnectionError;
|
|
PyObject *exc_type = PyExc_ConnectionError;
|
|
|
|
|
+#else
|
|
|
|
|
+ PyObject *exc_type = PyExc_StandardError;
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
s << endl << "Error sending message: " << endl;
|
|
s << endl << "Error sending message: " << endl;
|
|
|
msg.dump_hex(s);
|
|
msg.dump_hex(s);
|