Use two-argument form of next() and use a return-statement instead of an explicit raise StopIteration
Attach a file by drag & drop or click to upload