[jhbuild] Fixed end_phase error parameter to be a string, not an exception



commit 0320329e0b11c11c8e084578c7e222d783e38b0b
Author: Frédéric Péters <fpeters 0d be>
Date:   Sat Jul 3 10:03:43 2010 +0200

    Fixed end_phase error parameter to be a string, not an exception
    
    This is required for the autobuild, as it needs to send the value
    over XML-RPC. (GNOME bug 610054)

 jhbuild/modtypes/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/modtypes/__init__.py b/jhbuild/modtypes/__init__.py
index ddcde15..70d822e 100644
--- a/jhbuild/modtypes/__init__.py
+++ b/jhbuild/modtypes/__init__.py
@@ -164,7 +164,7 @@ class Package:
             error_phases = []
             if hasattr(method, 'error_phases'):
                 error_phases = method.error_phases
-            return (e, error_phases)
+            return (str(e), error_phases)
         else:
             return (None, None)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]