From a94dfc0e2fe1b23e5f0987ae1ef4f29670f4a057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sun, 13 Oct 2013 14:30:45 +0200 Subject: [PATCH] Print unhandled exceptions instead of just swallowing them --- src/_frida.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_frida.c b/src/_frida.c index 200083e..49352cb 100644 --- a/src/_frida.c +++ b/src/_frida.c @@ -607,7 +607,7 @@ PyDeviceManager_on_changed (PyDeviceManager * self, FridaDeviceManager * handle) { PyObject * result = PyObject_CallFunction ((PyObject *) cur->data, NULL); if (result == NULL) - PyErr_Clear (); + PyErr_Print (); else Py_DECREF (result); } @@ -896,7 +896,7 @@ PyDevice_on_lost (PyDevice * self, FridaDevice * handle) { PyObject * result = PyObject_CallFunction ((PyObject *) cur->data, NULL); if (result == NULL) - PyErr_Clear (); + PyErr_Print (); else Py_DECREF (result); } @@ -1182,7 +1182,7 @@ PySession_on_detached (PySession * self, FridaSession * handle) { PyObject * result = PyObject_CallFunction ((PyObject *) cur->data, NULL); if (result == NULL) - PyErr_Clear (); + PyErr_Print (); else Py_DECREF (result); } @@ -1400,7 +1400,7 @@ PyScript_on_message (PyScript * self, const gchar * message, const gchar * data, { PyObject * result = PyObject_CallObject ((PyObject *) cur->data, args); if (result == NULL) - PyErr_Clear (); + PyErr_Print (); else Py_DECREF (result); }