Its base class ValueError can be raised too, so catch that.
Attach a file by drag & drop or click to upload