]> git.ipfire.org Git - pakfire.git/commitdiff
Fix for sending dependency error correctly to the server.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jul 2011 13:07:05 +0000 (15:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jul 2011 13:07:05 +0000 (15:07 +0200)
pakfire/server.py

index da87c257624446cf3a1a6dcfe133d5521a900ee7..5a98f445cd4a351d6c7422455992cdfb26c9ca3a 100644 (file)
@@ -318,6 +318,10 @@ class Server(object):
                try:
                        func(build_id, build)
 
+               except DependencyError:
+                       # This has already been reported by func.
+                       raise
+
                except Exception, e:
                        # Format the exception and send it to the server.
                        message = "%s: %s" % (e.__class__.__name__, e)
@@ -373,6 +377,7 @@ class Server(object):
                except DependencyError, e:
                        message = "%s: %s" % (e.__class__.__name__, e)
                        self.update_build_status(build_id, "dependency_error", message)
+                       raise
 
                finally:
                        # Upload the logfile in any case and if it exists.