diff options
| author | Stephan Peijnik <debian@sp.or.at> | 2009-06-29 11:08:36 +0200 |
|---|---|---|
| committer | Stephan Peijnik <debian@sp.or.at> | 2009-06-29 11:08:36 +0200 |
| commit | 8e1755030e5c00bcb183213ada7084fb0f5f6be9 (patch) | |
| tree | 997869b9a68c6367ddcd10b6785dfa65adf54c5f /python | |
| parent | 80f3ac59823b31be89dcb52b5ba38aa27d48121f (diff) | |
| parent | 1928a8fab432b219c6286ff08b142c57c6df5e6b (diff) | |
| download | python-apt-8e1755030e5c00bcb183213ada7084fb0f5f6be9.tar.gz | |
Merged with lp:python-apt.
Diffstat (limited to 'python')
| -rw-r--r-- | python/progress.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/progress.cc b/python/progress.cc index 14948d3c..95cece3b 100644 --- a/python/progress.cc +++ b/python/progress.cc @@ -27,9 +27,12 @@ bool PyCallbackObj::RunSimpleCallback(const char* method_name, PyObject *method = PyObject_GetAttrString(callbackInst,(char*) method_name); if(method == NULL) { - // FIXME: make this silent //std::cerr << "Can't find '" << method_name << "' method" << std::endl; Py_XDECREF(arglist); + if (res) { + Py_INCREF(Py_None); + *res = Py_None; + } return false; } PyObject *result = PyEval_CallObject(method, arglist); |
