Fix flake8

This commit is contained in:
khanh96le 2022-05-31 13:36:15 +07:00
parent 2187de083c
commit 6577401b71
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ def get_manager(
def get(name: str, val: Any, default: Any) -> Any:
return (
val if val is not None
else opt('manager_%s' % name) or getattr(client, name, None) or default
else opt(
'manager_%s' % name) or getattr(client, name, None) or default
)
host = get('hostname', hostname, 'localhost')