mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.11k stars 173 forks source link

fix(webapp) fix app crashing when fetching organizations list without auth #671

Closed prmths128 closed 2 weeks ago

prmths128 commented 2 weeks ago

note: this function is not going to work anyway since it has no authentication I'm not going to fix it now so I'm adding a safe default return value in case of error, thus preventing the app from crashing (but not fixing the auto redirect to the default organization page when applicable - now that I think of it we might want to get rid of that later).