[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: find-work script no longer working on stable

> try:
>     import requests
> except ImportError:
>     sys.stderr.puts("You need to install python3-requests")
>     sys.exit(1)

This seems unnecessary; ``requests`` was always required, it would make
the behaviour inconsistent with all the other scripts which also have
dependencies that are in other packages, its Debian-specific, and
aesthetically unpleasing to do this.

Besides, more idiomatic is

    print("You need to install python3-requests", file=sys.stderr)



     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk

Reply to: