You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, currently client code can receive something like {'error': 'Cette observation n’existe plus.'}. as a return value from update_observation()...
So the client code should look for an 'error' key in each of the results (and I'm not sure the API is really consistent in that). So it seems it would be more pythonic and nicer to raise an exception (a very specific if possible, or general one like Error 500 otherwise) each time it's not Status=200.
The text was updated successfully, but these errors were encountered:
For example, currently client code can receive something like {'error': 'Cette observation n’existe plus.'}. as a return value from update_observation()...
So the client code should look for an 'error' key in each of the results (and I'm not sure the API is really consistent in that). So it seems it would be more pythonic and nicer to raise an exception (a very specific if possible, or general one like Error 500 otherwise) each time it's not Status=200.
The text was updated successfully, but these errors were encountered: