pycloudinary icon indicating copy to clipboard operation
pycloudinary copied to clipboard

Feature: Bad Format exception

Open tgdn opened this issue 3 years ago • 2 comments

Feature request for Cloudinary Python SDK

Explain your use case

At the moment, specifying allowed_formats only raises a general Error when the file is of the wrong file type: ie: Raw file format txt not allowed

Describe the problem you’re trying to solve

Having a specific type of exception such as BadFormat/BadFileType would allow us to handle it in a cleaner fashion.

Do you have a proposed solution?

Yes, implement an exception which is raised if the server returns a certain type of error.

tgdn avatar Jan 05 '21 11:01 tgdn

I would like to work on this. Can you assign it to me?

aachal28 avatar Oct 04 '23 02:10 aachal28

@aachal28 you can always submit a pull request 😄

PixelCook avatar Oct 04 '23 06:10 PixelCook