On Fri, 19 Jun 2009, James Antill wrote:
            if not hasattr(self, thing):
                raise AttributeError, "%s has no attribute %s" % (self, thing)
-        return self.hdr[thing]
+        try:
+            return self.hdr[thing]
+        except KeyError:
+            raise AttributeError, "%s has no attribute %s" % (self, thing)

I'm pretty sure we didn't commit this before to 3.2.X b/c it is an API break, sadly.

-sv

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to