ai-cfia / nachet-backend

A flask-based backend for Nachet to handle Azure endpoint and Azure storage API requests from the frontend.
MIT License
1 stars 4 forks source link

Fix condition to check for None type #18

Closed vivalareda closed 11 months ago

vivalareda commented 11 months ago

https://github.com/ai-cfia/nachet-backend/blob/d4bc5bcecec0e1cec09cb37f8cc02b6565b91a83/app.py#L28-L33

issamansur commented 11 months ago

Do I need to change not endpoint_api_key to endpoint_api_key is not None ?

vivalareda commented 11 months ago

an error message needs to be raised when the file type is none. When I tried to deploy, I got this error TypeError: expected string or bytes-like object, got 'NoneType' - needs to be handled