pyronear / pyro-platform

Detection & monitoring platform of wildfires
https://platform.pyronear.org/
Apache License 2.0
10 stars 11 forks source link

manage empty live event #100

Closed MateoLostanlen closed 1 year ago

MateoLostanlen commented 1 year ago

If there are no live events, the following error occurs

AttributeError: 'DataFrame' object has no attribute 'id' at

I therefore propose a small fix to resolve the problem

Also there is a duplication of code between here and there