Flask Werkzeug\formparser.py Exception
Trying to run a simple flask app in PyDev and it's giving me this error: File '\AppData\Local\Programs\Python\Python36-32\lib\site-packages\werkzeug\formparser.py', line 28 from w
Solution 1:
Adding '\' to a line tells python that you are going to continue this line in the next line. E.g.
1 + 2 + \
3
is read by python as
1 + 2 + 3
because of this, '\' always needs to be the last character in a line of code. Your error can be easily reproduced by doing anything like
print('hello') \ print('world')
which will raise
File "C:/Users/.../test.py", line 1
print('hello') \ print('world')
^
SyntaxError: unexpected character after line continuation character
so, just either remove the backslash or write anything after it into a new line.
Post a Comment for "Flask Werkzeug\formparser.py Exception"