Is it fine if the try/except is outside of the inner loop?