namachieli / numista-api-sdk

A Python SDK for the Numista API
MIT License
6 stars 0 forks source link

Rewrite the status code evaluation logic in _api_client() #12

Open namachieli opened 2 years ago

namachieli commented 2 years ago
if r.status_code in range(100, 599):
    try:
        r.json()
<...>

This was thrown together hastily and should really have a later pass to be written better.