Fix duplicate keyword argument

This commit is contained in:
allegroai 2021-10-27 22:06:50 +03:00
parent d0e09282d3
commit f37ca65c56
2 changed files with 5 additions and 4 deletions

View File

@ -237,7 +237,7 @@ class Session(TokenManager):
return
if ENV_DISABLE_VAULT_SUPPORT.get():
print("Vault support is disabled")
# (self._logger or get_logger()).debug("Vault support is disabled")
return
def parse(vault):
@ -249,7 +249,8 @@ class Session(TokenManager):
if isinstance(r, (ConfigTree, dict)):
return r
except Exception as e:
print("Failed parsing vault {}: {}".format(vault.get("description", "<unknown>"), e))
(self._logger or get_logger()).warning("Failed parsing vault {}: {}".format(
vault.get("description", "<unknown>"), e))
# noinspection PyBroadException
try:
@ -262,7 +263,7 @@ class Session(TokenManager):
elif res.status_code != 404:
raise Exception(res.json().get("meta", {}).get("result_msg", res.text))
except Exception as ex:
print("Failed getting vaults: {}".format(ex))
(self._logger or get_logger()).warning("Failed getting vaults: {}".format(ex))
def _apply_config_sections(self, local_logger):
# type: (_LocalLogger) -> None # noqa: F821

View File

@ -918,9 +918,9 @@ class Dataset(object):
task_ids=[dataset_id] if dataset_id else None,
project_name=dataset_project,
task_name=exact_match_regex(dataset_name) if dataset_name else None,
tags=dataset_tags,
task_filter=dict(
system_tags=[cls.__tag, '-archived'], order_by=['-created'],
tags=dataset_tags,
type=[str(Task.TaskTypes.data_processing)],
page_size=1, page=0,
status=['published'] if only_published else