Nov-01-2020, 04:40 AM
I'm not sure the try/except is your problem. We don't have your inputs, so it's hard to see what's happening.
If you replace the "try" prints with something that always succeeds like
You could do it as a conditional rather than a try/except.
If you replace the "try" prints with something that always succeeds like
print(f"dir_f is {dir_f}")Do you still only get one print?
You could do it as a conditional rather than a try/except.