python-tuf/examples
Jussi Kukkonen 4efd9496dc ngclient: Make DownloadErrors consistent
Fetcher interface should only raise DownloadErrors,
regardless of the implementation.
 * Make sure fetch() wraps non-DownloadError errors in a DownloadError
 * Make the abstract function private _fetch()
 * Try to be more consistent in doscstrings

This now makes the example client more sensible (when server does not
respond):
    $ ./client_example.py download qwerty
    ...
    Failed to download target qwerty: Failed to download url http://127.0.0.1:8000/metadata/2.root.json

(here the latter part of the error string comes from DownloadError
raised by FetcherInterface.fetch())

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
2022-02-04 11:03:12 +02:00
..
client_example ngclient: Make DownloadErrors consistent 2022-02-04 11:03:12 +02:00
repo_example Fix new space warning by black 2022-02-01 12:29:50 +02:00
README.md docs: add examples to the RTD 2022-01-18 13:14:02 +01:00

Usage examples