Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sites bug #99

Open
MateoLostanlen opened this issue Jun 15, 2023 · 1 comment
Open

No sites bug #99

MateoLostanlen opened this issue Jun 15, 2023 · 1 comment
Labels
type: bug Something isn't working

Comments

@MateoLostanlen
Copy link
Member

MateoLostanlen commented Jun 15, 2023

It's a rare case, but if a user doesn't have a site, the platform crashes! Because there's a zero division here


Traceback (most recent call last):
  File "/home/mateo/pyronear/platform/pyro-platform/app/main.py", line 655, in manage_login_modal
    lat = latitudes / len(response_sites)
ZeroDivisionError: division by zero
@fe51 fe51 added the type: bug Something isn't working label Apr 17, 2024
@RonanMorgan
Copy link
Collaborator

it should not be possible for a customer not to have a site, no ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants