From 13c8401a89d34cc412e76ade8f112a31b9988e4f Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Mon, 28 Feb 2022 19:06:55 -0300 Subject: [PATCH] 18574: Fixes doc test failure. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- sdk/python/arvados/vocabulary.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/python/arvados/vocabulary.py b/sdk/python/arvados/vocabulary.py index d51435f033..a8c03ebf30 100644 --- a/sdk/python/arvados/vocabulary.py +++ b/sdk/python/arvados/vocabulary.py @@ -8,9 +8,11 @@ from . import api _logger = logging.getLogger('arvados.vocabulary') -def load_vocabulary(api_client=api('v1')): +def load_vocabulary(api_client=None): """Load the Arvados vocabulary from the API. """ + if api_client is None: + api_client = api('v1') return Vocabulary(api_client.vocabulary()) class Vocabulary(object): -- 2.30.2