git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no change - various tweaks here and there
[sfa.git]
/
sfa
/
rspecs
/
elements
/
element.py
diff --git
a/sfa/rspecs/elements/element.py
b/sfa/rspecs/elements/element.py
index
36ad12f
..
df46c89
100644
(file)
--- 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:
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))