Ask coding questions

← Back to all posts
what is wrong in my databaseSQL_connection Class Cursor ?
FineMouche (2)

i try to copy the form/structure i used in my course of inheritance in python but here it seem it need to do something specific due to the fact i try create a context manager :/

p.s : there are not only the main.py, there is a folder utils with 3 files (1 is just init.py)

Comments
hotnewtop
RYANTADIPARTHI (5999)

You are getting this error because you are trying to commit a nonetype. meaning like there is something having a none value, and you are trying to commit it.

FineMouche (2)

@RYANTADIPARTHI the Class DatabaseConnection was made during the course, i try copy it for the .Cursor. Why it can't be done the same way ?