diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-04-20 23:26:20 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-04-20 23:26:20 -0400 |
commit | ae946b70b24c61673e8b7c880ccbdf91768d456d (patch) | |
tree | 48fa71dec63e32b876dfe5e733367aef258892f5 /cmd2/cmd2.py | |
parent | f05dfe73d675e198ad271fa23c7dcdcd1f988551 (diff) | |
download | cmd2-git-ae946b70b24c61673e8b7c880ccbdf91768d456d.tar.gz |
Updated error text
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index c22cb76d..98969d10 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -3191,8 +3191,7 @@ class Cmd(cmd.Cmd): saved_sys_path = None if self.in_pyscript(): - err = "Recursively entering interactive Python shells is not allowed." - self.perror(err) + self.perror("Recursively entering interactive Python shells is not allowed") return try: @@ -3367,8 +3366,7 @@ class Cmd(cmd.Cmd): exit_msg='Leaving IPython, back to {}'.format(sys.argv[0])) if self.in_pyscript(): - err = "Recursively entering interactive Python shells is not allowed." - self.perror(err) + self.perror("Recursively entering interactive Python shells is not allowed") return try: |