Skip to content
Browse files

Change warning from UserWarning to DeprecationWarning so it is ignore…

…d by default
  • Loading branch information...
1 parent 239ccab commit 2193f7c96dd8ee0cf8a9bc5dc6763f8d3d9b74bd @techniq techniq committed Dec 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 flask_script/__init__.py
View
2 flask_script/__init__.py
@@ -167,7 +167,7 @@ def create_parser(self, prog, parents=None):
if 'parents' in inspect.getargspec(command.create_parser).args:
command_parser = command.create_parser(name, parents=[options_parser])
else:
- warnings.warn("create_parser for {0} command should accept a `parents` argument".format(name))
+ warnings.warn("create_parser for {0} command should accept a `parents` argument".format(name), DeprecationWarning)
command_parser = command.create_parser(name)
subparser = subparsers.add_parser(name, usage=usage, help=help,

0 comments on commit 2193f7c

Please sign in to comment.
Something went wrong with that request. Please try again.