Skip to content

Commit d8c0b0a

Browse files
committed
Tweaked some error strings
1 parent 42af9e9 commit d8c0b0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2/pyscript_bridge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def __call__(self, *args, **kwargs):
169169
# Check if there are any extra arguments we don't know how to handle
170170
for kw in kwargs:
171171
if kw not in self._args: # consumed_kw:
172-
raise TypeError('{}() got an unexpected keyword argument \'{}\''.format(
172+
raise TypeError("{}() got an unexpected keyword argument '{}'".format(
173173
self.__current_subcommand_parser.prog, kw))
174174

175175
if has_subcommand:
@@ -181,7 +181,7 @@ def _run(self):
181181
# look up command function
182182
func = self._cmd2_app.cmd_func(self._command_name)
183183
if func is None:
184-
raise AttributeError("{!r} object has no command called {!r}".format(self._cmd2_app.__class__.__name__,
184+
raise AttributeError("'{}' object has no command called '{}'".format(self._cmd2_app.__class__.__name__,
185185
self._command_name))
186186

187187
# reconstruct the cmd2 command from the python call

0 commit comments

Comments
 (0)