summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py6
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: