filters: Fix Attr error message
Not always a Link, incorrect English.
This commit is contained in:
parent
de22d60f72
commit
38359dc8c9
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class Attr(Filter):
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return self.default_or_raise(XPathNotFound('Unable to find link %s' % self.selector))
|
return self.default_or_raise(XPathNotFound('Unable to find link %s' % self.selector))
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return self.default_or_raise(AttributeNotFound('Link %s does not has attribute %s' % (el[0], self.attr)))
|
return self.default_or_raise(AttributeNotFound('Element %s does not have attribute %s' % (el[0], self.attr)))
|
||||||
|
|
||||||
|
|
||||||
class Link(Attr):
|
class Link(Attr):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue