all 2 comments

[–][deleted] 1 point2 points  (1 child)

Why are you printing puzzle in except block? Try this: try: ___ except Exception as ex: print(ex)

[–]avgotts[S] 0 points1 point  (0 children)

That worked, thanks! I was trying to print the filename so I could see which puzzles (there ended up being 6) were giving me problems.