Can't figure this out. My code passes functionality it buys stocks no problem but fails check50 with this error

:( buy handles valid purchase application raised an exception (see log for details)

Log sending POST request to /login sending POST request to /buy exception raised in application: TypeError: 'NoneType' object is not subscriptable

You must log in to answer this question.

Browse other questions tagged .