diff options
| author | Michael Vogt <mvo@debian.org> | 2011-03-29 09:13:46 +0200 |
|---|---|---|
| committer | Michael Vogt <mvo@debian.org> | 2011-03-29 09:13:46 +0200 |
| commit | e12fa9b90458f31b9bc3ceeab7c4c106113cab53 (patch) | |
| tree | c56f9dcaad46218d1a76f32778f4f591ca692136 /python | |
| parent | 7df26fec497b8b1f191e49b99807c0570272f289 (diff) | |
| parent | 4bbf76cfa7a42b0cccd650baf3508cf6cfb14c5a (diff) | |
| download | python-apt-e12fa9b90458f31b9bc3ceeab7c4c106113cab53.tar.gz | |
merged from the mvo branch
Diffstat (limited to 'python')
| -rw-r--r-- | python/progress.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/progress.cc b/python/progress.cc index 437309cf..5700a1b6 100644 --- a/python/progress.cc +++ b/python/progress.cc @@ -399,7 +399,9 @@ bool PyFetchProgress::Pulse(pkgAcquire * Owner) { // most of the time the user who subclasses the pulse() // method forgot to add a return {True,False} so we just - // assume he wants a True + // assume he wants a True. There may be a Python exception on the stack + // that must be cleared. + PyErr_Clear(); PyCbObj_BEGIN_ALLOW_THREADS return true; } |
