Skip to content

Commit 9b5367e

Browse files
committed
Cleanup and simplify tests
1 parent e5b2f68 commit 9b5367e

File tree

2 files changed

+182
-178
lines changed

2 files changed

+182
-178
lines changed

flask_script/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def handle(self, prog, name, args=None):
292292
try:
293293
command = self._commands[name]
294294
except KeyError:
295-
raise InvalidCommand, "Command %s not found" % name
295+
raise InvalidCommand("Command %s not found" % name)
296296

297297
if isinstance(command, Manager):
298298
# Run sub-manager, stripping first argument
@@ -346,7 +346,7 @@ def run(self, commands=None, default_command=None):
346346
command = default_command
347347

348348
if command is None:
349-
raise InvalidCommand, "Please provide a command:"
349+
raise InvalidCommand("Please provide a command:")
350350

351351
result = self.handle(sys.argv[0], command, sys.argv[2:])
352352

0 commit comments

Comments
 (0)