Figured it out. Looks like it was my fault, I think the database was locked by my external table editor but an error of that kind was never thrown in Python.