@ccc Without this line, my code runs without error, but perhaps a previous run has executed it.
is it possible that this "line" remains active once it has been executed?
Very kind with your "nice code" but I don't think it's nice, that's only draft of different tests.
I'll never dare share this kind of code because, for me, it is really not perfect. In the past, I've written a lot of applications during my (too) long life, in Fortran, Assembler, Cobol, APL, PL/1, Basic, CBasic, Basic, Delphi on a lot of (IBM only) platforms, but with a lot of "error interception" code to make them "as perfect as possible", and I don't want anymore to spend time to with this kind of code.
Anyway, since I'm retired, Pythonista is the most rentable purchase I did: 10€ for a ton hours of pleasure.