diff --git a/src/ahriman/application/ahriman.py b/src/ahriman/application/ahriman.py index ceca9885..8ec79d5f 100644 --- a/src/ahriman/application/ahriman.py +++ b/src/ahriman/application/ahriman.py @@ -274,7 +274,7 @@ def _set_web_parser(root: SubParserAction) -> argparse.ArgumentParser: return parser -def run(): +def run() -> None: """ run application instance """ diff --git a/src/ahriman/core/status/web_client.py b/src/ahriman/core/status/web_client.py index 81413742..bc4c7937 100644 --- a/src/ahriman/core/status/web_client.py +++ b/src/ahriman/core/status/web_client.py @@ -52,7 +52,8 @@ class WebClient(Client): :param exception: exception raised :return: text of the response if it is not None and empty string otherwise """ - return exception.response.text if exception.response is not None else '' + result: str = exception.response.text if exception.response is not None else '' + return result def _ahriman_url(self) -> str: """ diff --git a/tests/ahriman/application/handlers/test_handler_status.py b/tests/ahriman/application/handlers/test_handler_status.py index 1fc32783..be3240d7 100644 --- a/tests/ahriman/application/handlers/test_handler_status.py +++ b/tests/ahriman/application/handlers/test_handler_status.py @@ -43,4 +43,3 @@ def test_run_with_package_filter(args: argparse.Namespace, configuration: Config Status.run(args, "x86_64", configuration) packages_mock.assert_called_once() -