Questions tagged [nonetype]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
34 views

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

I have read in other comments that API may return error sometimes due to volume and others. Is there a way around it? Can we temporary bypass the issue, or is there any way to continue checking other ...
0
votes
1answer
512 views

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

I finished doing finance and tested it without many errors i would say. Fun fact, i was implementing a change password and it got me this error TypeError: a bytes-like object is required, not '...
0
votes
2answers
251 views

pset7: check50 error - sell page has all required elements

I'm having an argument with check50 on pset7 finance, when it comes to the SELL part. The web app works fine and I'm able to sell my stocks. When I run check50, though, it keeps telling me that the ...
1
vote
1answer
50 views

NoneType Non-subscriptable … but only sometimes

I'm not sure if I understand this correctly. I've written the following bit of simple code: for portfolio in portfolios: symbol = portfolio["symbol"] look = lookup(symbol) price = float(...
1
vote
1answer
423 views

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

:( 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: '...
1
vote
1answer
186 views

Pset 7 - Cannot replicate None type not subscritable error

I am running check50 on my code and at buy, it cannot validate a purchase because Log sending POST request to /login sending POST request to /buy exception raised in application: TypeError: '...
1
vote
2answers
3k views

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

I'm currently working on my final project. I know that the number of people who will be able to answer this question is small, but it won't hurt to ask. So here it is: for some reason, user_email = ...
0
votes
1answer
357 views

pset7 finance- quote 'nonetype' object error

I am new to python and am very confused by this error message: AttributeError: 'NoneType' object has no attribute 'startswith' I think it has something todo with nothing being passed into the lookup ...