summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2013-10-23 19:40:07 +0200
committerJulian Andres Klode <jak@debian.org>2013-10-23 19:40:07 +0200
commita2b3528a6b96c11a8c3f0600a5cde778a7911b4e (patch)
tree5f5ed86576f69eb3255d5114c38ddd0d7219094e /python
parentea815d93dda86504518bdf69488b1f336f2439a3 (diff)
downloadpython-apt-a2b3528a6b96c11a8c3f0600a5cde778a7911b4e.tar.gz
python/depcache.cc: Add more error handling to PkgDepCacheCommit
It returned false, but should have returned NULL after handling errors.
Diffstat (limited to 'python')
-rw-r--r--python/depcache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/depcache.cc b/python/depcache.cc
index b257e2c9..c9dc79f3 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -111,7 +111,7 @@ static PyObject *PkgDepCacheCommit(PyObject *Self,PyObject *Args)
bool Transient = false;
if (Fetcher.Run() == pkgAcquire::Failed)
- return false;
+ return HandleErrors();
// Print out errors
bool Failed = false;