/usr/lib/python3/dist-packages/mechanicalsoup/utils.py is in python3-mechanicalsoup 0.10.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | class LinkNotFoundError(BaseException):
"""Exception raised when mechanicalsoup fails to find something.
This happens in situations like (non-exhaustive list):
* :func:`~mechanicalsoup.StatefulBrowser.find_link` is called, but
no link is found.
* The browser was configured with raise_on_404=True and a 404
error is triggered while browsing.
* The user tried to fill-in a field which doesn't exist in a form
(e.g. browser["name"] = "val" with browser being a
StatefulBrowser).
"""
pass
|