Python Forum
Problem applying conditions against results back from a database
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem applying conditions against results back from a database
#11
That's the relevant line, now use it to answer the questions I asked.
Reply
#12
why would that line not be working but line 42 be OK?
Reply
#13
You've posted partial code, so there isn't a line 42 in what you've posted. In any case, what have you done to try and work that out?
Reply
#14
the same code works 2 lines up from it is what I mean.
Reply
#15
I don't really understand what you mean. In any case, the goal here is to help you learn how to debug the program.
Reply
#16
okay well i don't understand how there could be in error in that code if almost the exact same code is used two lines up.
Reply
#17
In the code you've posted, line 8 looks like the one where the TypeError is raised. Line 6 looks nothing like it.

You seem to be missing the point really. You have a value that's None and need to work out why that is, because that will guide you towards how to fix that problem.
Reply
#18
ok so what would u do?
Reply
#19
Literally, I'm walking you through the process I'd go through, which starts by answering the questions in post 9.
Reply
#20
username, password, usernamedata and passworddata

Those are the 4 variables used in that line.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  applying total in a loop to a list JustinxFFx 1 2,187 Feb-11-2018, 03:14 AM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020