From: Lucas Di Pentima Date: Mon, 28 Feb 2022 22:06:55 +0000 (-0300) Subject: 18574: Fixes doc test failure. X-Git-Tag: 2.4.0~67^2~8 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/13c8401a89d34cc412e76ade8f112a31b9988e4f 18574: Fixes doc test failure. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- 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):