pyronear / pyro-platform

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

No url available #138

Closed MateoLostanlen closed 1 month ago

MateoLostanlen commented 7 months ago

There are alerts without url (probably a problem on the engine side) but we should prevent the following error from being triggered here

Traceback (most recent call last): File "/usr/src/app/callbacks/display_callbacks.py", line 387, in update_download_link event_id, media_id = alert_data.iloc[slider_value][["event_id", "media_id"]] File "/usr/local/lib/python3.9/site-packages/pandas/core/indexing.py", line 1153, in __getitem__ return self._getitem_axis(maybe_callable, axis=axis) File "/usr/local/lib/python3.9/site-packages/pandas/core/indexing.py", line 1714, in _getitem_axis self._validate_integer(key, axis) File "/usr/local/lib/python3.9/site-packages/pandas/core/indexing.py", line 1647, in _validate_integer raise IndexError("single positional indexer is out-of-bounds") IndexError: single positional indexer is out-of-bounds