Everything was going fine and I refreshed the page to check my updates when I got an internal server error and the whole page didn't load. I looked in my IDE terminal and it said
File "/home/ubuntu/pset8/finance/application.py", line 87
def buy():
^
SyntaxError: invalid syntax
The rest of my buy function worked fine, and I was working on showing the portfolio when this occurred. I did not touch this specific line, so I'm not sure why it suddenly doesn't work (and the other "def xxx():" seem to work fine.).
Any ideas?
else:
is the invalid syntax.