diff options
Diffstat (limited to 'src/report-python/crash_data.c')
-rw-r--r-- | src/report-python/crash_data.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/report-python/crash_data.c b/src/report-python/crash_data.c index 04a721cc..217560e5 100644 --- a/src/report-python/crash_data.c +++ b/src/report-python/crash_data.c @@ -82,6 +82,10 @@ static PyObject *p_get_crash_data_item(PyObject *pself, PyObject *args) return NULL; } struct crash_item *ci = get_crash_data_item_or_NULL(self->cd, key); + if (ci == NULL) + { + Py_RETURN_NONE; + } return Py_BuildValue("sI", ci->content, ci->flags); } |