cloudinary / cloudinary/pycloudinary

Feature: Bad Format exception

Offen
#266 2 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @const-cloudinary Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
262
Forks
134
Ø Merge
5 Std. 6 Min.
Gemergte PRs (30 T.)
5

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.