From 0d7e7125af2aa6271dbc77e69373ae5444895bc3 Mon Sep 17 00:00:00 2001 From: TArinomo <52284681+Arinomo@users.noreply.github.com> Date: Wed, 13 Apr 2022 21:13:37 +0200 Subject: [PATCH] fix getClassName without className argument (#154) fix the index of string format when calling getClassName methode without className argument --- OMPython/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMPython/__init__.py b/OMPython/__init__.py index 2177dbc..67776a7 100755 --- a/OMPython/__init__.py +++ b/OMPython/__init__.py @@ -528,7 +528,7 @@ def getClassNames(self, className=None, recursive=False, qualified=False, sort=F str(builtin).lower(), str(showProtected).lower())) else: value = self.ask('getClassNames', - 'recursive={1}, qualified={2}, sort={3}, builtin={4}, showProtected={5}'.format( + 'recursive={0}, qualified={1}, sort={2}, builtin={3}, showProtected={4}'.format( str(recursive).lower(), str(qualified).lower(), str(sort).lower(), str(builtin).lower(), str(showProtected).lower())) return value