mirror of
https://github.com/clearml/clearml
synced 2025-04-08 14:46:07 +00:00
Fix duplicate keyword argument
This commit is contained in:
parent
d0e09282d3
commit
f37ca65c56
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user