onaio / mspray

Mspray
https://mspray.onalabs.org/
Apache License 2.0
3 stars 1 forks source link

ZeroDivisionError: division by zero #509

Closed ukanga closed 5 years ago

ukanga commented 5 years ago

https://sentry.onalabs.org/ona/mspray/issues/72056/

ZeroDivisionError: division by zero
  File "mspray/apps/main/tasks.py", line 453, in set_district_sprayed_visited
    set_sprayed_visited(location)
  File "mspray/apps/main/tasks.py", line 338, in set_sprayed_visited
    ratio = round((found * 100) / total_structures)

ZeroDivisionError: division by zero