summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-10-03 10:38:48 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-10-03 10:38:48 -0400
commitd8c0b0a56d21716f985f3715e3c9e31d2309d7da (patch)
tree3cd763adf0defd4fbe867099ed158af6cb26b823
parent42af9e9733826e84fe884be46bd09220bce2d116 (diff)
downloadcmd2-git-d8c0b0a56d21716f985f3715e3c9e31d2309d7da.tar.gz
Tweaked some error strings
-rw-r--r--cmd2/pyscript_bridge.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/pyscript_bridge.py b/cmd2/pyscript_bridge.py
index 07ce7212..a70a7ae6 100644
--- a/cmd2/pyscript_bridge.py
+++ b/cmd2/pyscript_bridge.py
@@ -169,7 +169,7 @@ class ArgparseFunctor:
# Check if there are any extra arguments we don't know how to handle
for kw in kwargs:
if kw not in self._args: # consumed_kw:
- raise TypeError('{}() got an unexpected keyword argument \'{}\''.format(
+ raise TypeError("{}() got an unexpected keyword argument '{}'".format(
self.__current_subcommand_parser.prog, kw))
if has_subcommand:
@@ -181,7 +181,7 @@ class ArgparseFunctor:
# look up command function
func = self._cmd2_app.cmd_func(self._command_name)
if func is None:
- raise AttributeError("{!r} object has no command called {!r}".format(self._cmd2_app.__class__.__name__,
+ raise AttributeError("'{}' object has no command called '{}'".format(self._cmd2_app.__class__.__name__,
self._command_name))
# reconstruct the cmd2 command from the python call