From 2f53c4dd396bdbbcfc252d95b01abdc4e49a6cc0 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Sat, 16 Aug 2025 23:03:19 +0530 Subject: [PATCH] actions:privileged: Fix flake8 errors Signed-off-by: Joseph Nuthalapati --- plinth/actions.py | 5 ++--- plinth/privileged_daemon.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/plinth/actions.py b/plinth/actions.py index 06a25c283..3cb0e3172 100644 --- a/plinth/actions.py +++ b/plinth/actions.py @@ -506,9 +506,8 @@ def privileged_handle_json_request(request_string: str) -> str: if parameter not in request: raise TypeError(f'Missing required parameter "{parameter}"') if not isinstance(request[parameter], expected_type): - raise TypeError( - f'Parameter "{parameter}" must be of type {expected_type.__name__}' - ) + raise TypeError(f'Parameter "{parameter}" must be of type' + f'{expected_type.__name__}') return request diff --git a/plinth/privileged_daemon.py b/plinth/privileged_daemon.py index 3101c9a83..014453c9a 100644 --- a/plinth/privileged_daemon.py +++ b/plinth/privileged_daemon.py @@ -84,8 +84,8 @@ class Server(socketserver.ThreadingUnixStreamServer): or root will be denied. If the server does not receive a request for idle_shutdown_time seconds and - no requests are being processed, then serve_forever() will raise TimeoutError - (so that the program can catch it and exit). + no requests are being processed, then serve_forever() will raise + TimeoutError (so that the program can catch it and exit). If the daemon is spawned by systemd socket activation, then systemd provided socket is re-used (no bind() and listen() calls are made on it)