diff options
author | Ben Sima <ben@bsima.me> | 2024-12-21 10:40:06 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2024-12-21 09:40:06 -0500 |
commit | 79390d4eea20ca15fd8e088345528f31ed5fad1e (patch) | |
tree | f08b71ffddead23484fd6df9e1aff54d20f12768 /Biz/Que | |
parent | 18956baad9cde85bc55bd0113092e51786d9e1ee (diff) |
Upgrade to nixos-24.05
I think this is the only "supported" nixos version now. But in any case scipy
seemed to be broken on the older version, and I couldn't build my code that uses
llm. Also, this allows me to get rid of the bild.os-unstable thing for
Beryllium, which was just a sitting timebomb of breaking stuff.
There are a lot of changes here because ruff updated to the very latest, and it
changed some minor lint things. Also with the new nixos I get a proper cgit
module, and some other breaking changes needed fixing.
Diffstat (limited to 'Biz/Que')
-rw-r--r-- | Biz/Que/Client.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Biz/Que/Client.py b/Biz/Que/Client.py index 53f14e4..9620c5e 100644 --- a/Biz/Que/Client.py +++ b/Biz/Que/Client.py @@ -112,10 +112,10 @@ def then(args: argparse.Namespace, msg: str) -> None: """Perform an action when passed `--then`.""" if args.then: logging.debug("then") - subprocess.run( + subprocess.run( # noqa: S602 args.then.format(msg=msg, que=args.target), check=False, - shell=True, # noqa: S602 + shell=True, ) @@ -124,7 +124,12 @@ def then(args: argparse.Namespace, msg: str) -> None: @retry(http.client.IncompleteRead) @retry(http.client.RemoteDisconnected) def recv(args: argparse.Namespace) -> None: - """Receive a message from the que.""" + """ + Receive a message from the que. + + Raises: + ValueError: if url is malformed + """ logging.debug("recv on: %s", args.target) if args.poll: req = request.Request(f"{args.host}/{args.target}/stream") |