Skip to content

Commit beb9c22

Browse files
germa89akaszynski
andauthored
Fix empty arg in _get_args_xsel (#1141)
* Fix * Update src/ansys/mapdl/core/misc.py Co-authored-by: Alex Kaszynski <[email protected]> Co-authored-by: Alex Kaszynski <[email protected]>
1 parent 428d05d commit beb9c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansys/mapdl/core/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ def wrapper(self, *args, **kwargs):
10321032

10331033

10341034
def _get_args_xsel(*args, **kwargs):
1035-
type_ = kwargs.pop("type_", args[0]).upper()
1035+
type_ = kwargs.pop("type_", str(args[0]) if len(args) else "").upper()
10361036
item = kwargs.pop("item", str(args[1]) if len(args) > 1 else "").upper()
10371037
comp = kwargs.pop("comp", str(args[2]) if len(args) > 2 else "").upper()
10381038
vmin = kwargs.pop("vmin", args[3] if len(args) > 3 else "")

0 commit comments

Comments
 (0)