From 15ec41caf74e264d757d2c64b92427f027194b82 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Thu, 25 Feb 2021 10:54:14 -0800 Subject: [PATCH] fix: wrong variable name Discovered this when I ran flake8 on the file. Unfortunately I was the one who introduced this wrong variable name :( --- gitlab/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/cli.py b/gitlab/cli.py index 3a315a807..485bbbb39 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -188,7 +188,7 @@ def main(): sys.exit(e) # We only support v4 API at this time if config.api_version not in ("4",): - raise ModuleNotFoundError(name="gitlab.v%s.cli" % self._api_version) + raise ModuleNotFoundError(name="gitlab.v%s.cli" % config.api_version) # Now we build the entire set of subcommands and do the complete parsing parser = _get_parser(gitlab.v4.cli)