mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
fix check errors
This commit is contained in:
parent
207da4caa7
commit
c04f940ad3
@ -274,7 +274,7 @@ def _set_web_parser(root: SubParserAction) -> argparse.ArgumentParser:
|
||||
return parser
|
||||
|
||||
|
||||
def run():
|
||||
def run() -> None:
|
||||
"""
|
||||
run application instance
|
||||
"""
|
||||
|
@ -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:
|
||||
"""
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user