From a2b3528a6b96c11a8c3f0600a5cde778a7911b4e Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 23 Oct 2013 19:40:07 +0200 Subject: python/depcache.cc: Add more error handling to PkgDepCacheCommit It returned false, but should have returned NULL after handling errors. --- python/depcache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3