cloudinary / cloudinary/pycloudinary

Feature: Bad Format exception

Open
#266 2 comments 0 reactions 1 assignee Claimed by @const-cloudinary View on GitHub
Dominant language
Python
Stars
262
Forks
134
Avg merge
5h 6m
Merged PRs (30d)
5

Description

# 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.