Feature: Bad Format exception

Offen
#266 2 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@const-cloudinary arbeitet bereits daran.

Seit 05.1.2021.

Bewertung

Dieses Issue wurde noch nicht bewertet.

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.

Vorherrschende Sprache
Python
Sterne
262
Forks
133
Ø Merge
3 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cloudinary/pycloudinary

Alle Issues in cloudinary/pycloudinary

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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