On Thu, 15 Apr 2021, Alan Gauld via Python-list wrote:
In the main() function the block of code starting with the 'with' statement should be indented to be part of main(). It has been left at the outermost indentation level. The source code file is correct so check against that.
Thanks, Alan. Rich -- https://mail.python.org/mailman/listinfo/python-list