putting a try/except around S3 file upload