HelloZeroNet / HelloZeroNet/ZeroNet
ChartCollector Collector connection_ping_min error: min() arg is an empty sequence
- Langage dominant
- JavaScript
- Étoiles
- 18.8k
- Forks
- 2.3k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I'm using `Version: 0.7.1 r4206, Python 3.7.3 ` and an error keeps coming out from logs:
`ChartCollector Collector connection_ping_min error: min() arg is an empty sequence`
This might be a result of the lack of edge condition checks in [the corresponding code](https://github.com/HelloZeroNet/ZeroNet/blob/py3/plugins/Chart/ChartCollector.py#L49
), where the built-in `min()` is sensitive to zero-length lists.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start with plugins/Chart/ChartCollector.py at the linked line around 49 and trace how connection-ping data reaches the min() call. Reproduce or inspect the empty-data path, then verify that the collector no longer emits this error when no values are available.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- observability
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100