From 183e33e99624ab87a2cd9dec174d4512d0be376b Mon Sep 17 00:00:00 2001 From: lxnay Date: Sun, 22 Feb 2009 19:03:27 +0000 Subject: [PATCH] Entropy/EquoInterface: - fetch_file: when running in debug mode, print the exception occured in urlFetcher, if any git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3059 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/entropy.py b/libraries/entropy.py index f2c1561ed..ec0c415b9 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -3662,6 +3662,14 @@ class EquoInterface(TextInterface): except NameError: raise except: + if etpUi['debug']: + self.updateProgress( + "fetch_file:", + importance = 1, + type = "warning", + header = red(" ## ") + ) + self.entropyTools.printTraceback() return -1, data_transfer, resumed if fetchChecksum == "-3": return -3, data_transfer, resumed