fix error message
This commit is contained in:
parent
ab533ad1b7
commit
a823cb8eef
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ class Attr(Filter):
|
|||
try:
|
||||
return u'%s' % el[0].attrib[self.attr]
|
||||
except IndexError:
|
||||
return self.default_or_raise(XPathNotFound('Unable to find link %s' % self.selector))
|
||||
return self.default_or_raise(XPathNotFound('Unable to find tag %s' % self.selector))
|
||||
except KeyError:
|
||||
return self.default_or_raise(AttributeNotFound('Element %s does not have attribute %s' % (el[0], self.attr)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue