Skip to main content
4 votes
Accepted

Final Project - request.form.get() returns a None type

Suggestion: validate your register.html with Nu Html Checker. (Right-click, view source, copy, paste into the checker). It should complain about the typo in this line <input type="email" class="...
DinoCoderSaurus's user avatar
3 votes
Accepted

Issue with Check50 PSET7 buy.html :( buy handles valid purchase

To pass the "buy handles valid purhase" stage, Check50 needs something along the lines of the following to appear following buying stock: You bought FB at $159.79 per stock which is worth $159.79 ...
AvocadoFire's user avatar
3 votes

TypeError: 'NoneType' object is not subscriptable in PSET9, but working manually

I noticed that the issue lies in the line where I insert the stock symbol into the "stocks" table in the buy function. The problem is that I am passing stock["name"] instead of ...
Chris's user avatar
  • 31
2 votes
Accepted

pset8 finance - 'NoneType' object is not subscriptable - issue

Two Three possible points of failure. symbol = request.form.get("symbol"). Remember, python get() returns None if the requested key is not found. Is there an element in the html with ...
DinoCoderSaurus's user avatar
1 vote

Pset 7 - Cannot replicate None type not subscritable error

Either: Is lookup always returning something? You could check this before applying a subscript. Reasoning is that Yahoo shut down its API a few weeks ago. Have you updated your helpers.py file? The ...
Blauelf's user avatar
  • 21k
1 vote

TypeError: a bytes-like object is required, not 'NoneType' in Finance

I think old_pw has a value of None. You write if not (old_pw or new_pw or confirm_password): but mean if not old_pw or not new_pw or not confirm_password: or equivalently if not (old_pw and ...
Blauelf's user avatar
  • 21k
1 vote
Accepted

pset7: check50 error - sell page has all required elements

The issue here is that, when the index.html page is rendered, the lookup function is returning None for the stock (in this particular case, it's because you are converting your symbols to lowercase ...
curiouskiwi's user avatar
  • 18.7k

Only top scored, non community-wiki answers of a minimum length are eligible