diff --git a/src/domain.py b/src/domain.py index d4d0324..627627b 100644 --- a/src/domain.py +++ b/src/domain.py @@ -143,7 +143,7 @@ class Domain: for log in logs_last_10: if log.type == LogType.CONNECTION_ERROR: failures += 1 - if len(logs_last_10)/2 <= failures: + if max(len(logs_last_10)/2, 1) <= failures: affected.add(wiki_url) if len(affected) > len(self)/5: return affected