Use http.client.InvalidURL instead of ValueError as the new error case's exception.
Attach a file by drag & drop or click to upload