X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Frspecs%2Felements%2Felement.py;fp=sfa%2Frspecs%2Felements%2Felement.py;h=df46c8913053e4cb60b3c8c0a076fb53e7b39099;hb=797c6e7020483cdb9d7df41d9d8050c3033f016c;hp=36ad12f73b43870fea8d4ee2cd7342f5fd98b290;hpb=8db6a89b0ccd32462875e45b57fec793279ed455;p=sfa.git diff --git a/sfa/rspecs/elements/element.py b/sfa/rspecs/elements/element.py index 36ad12f7..df46c891 100644 --- a/sfa/rspecs/elements/element.py +++ b/sfa/rspecs/elements/element.py @@ -19,4 +19,5 @@ class Element(dict): elif hasattr(self.element, name): return getattr(self.element, name) else: - raise AttributeError, "class Element has no attribute %s" % name + raise AttributeError("class Element of type {} has no attribute {}" + .format(self.__class__.__name__, name))