mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
fix check errors
This commit is contained in:
parent
461883217d
commit
56c600e5ac
@ -274,7 +274,7 @@ def _set_web_parser(root: SubParserAction) -> argparse.ArgumentParser:
|
|||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run() -> None:
|
||||||
"""
|
"""
|
||||||
run application instance
|
run application instance
|
||||||
"""
|
"""
|
||||||
|
@ -52,7 +52,8 @@ class WebClient(Client):
|
|||||||
:param exception: exception raised
|
:param exception: exception raised
|
||||||
:return: text of the response if it is not None and empty string otherwise
|
: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:
|
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)
|
Status.run(args, "x86_64", configuration)
|
||||||
packages_mock.assert_called_once()
|
packages_mock.assert_called_once()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user