Advertisement
GIlja

Python Error

Feb 8th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "__main__.py", line 37, in <module>
  3.     @app.route("/stop", method=['POST'])
  4.   File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1013, in decorator
  5.     self.add_url_rule(rule, endpoint, f, **options)
  6.   File "/usr/lib/python2.7/dist-packages/flask/app.py", line 62, in wrapper_func
  7.     return f(self, *args, **kwargs)
  8.   File "/usr/lib/python2.7/dist-packages/flask/app.py", line 976, in add_url_rule
  9.     rule = self.url_rule_class(rule, methods=methods, **options)
  10. TypeError: __init__() got an unexpected keyword argument 'method'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement