Thank you to respondents.
That the code worked at all is something I don't understand.
As Alan G pointed out, I had forgotten to include the "cur =
con.cursor()" line.
After this was corrected and the try/except statement deleted, it worked
as I expected.
Thanks to "-nick" for pointing me to the references regarding
transactions. That's not easy stuff.
I was aware that 'bare except' statements are to be eschewed but now,
thanks to Mark Lawrence, have a better idea of why.
Much appreciated.
alex
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor