fix: int the poll fails

pull/39/head
db0 2023-09-26 14:15:20 +02:00
parent ee22c5d145
commit 8b6a1445e1
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ if __name__ == "__main__":
if instance.software == 'wildcard':
continue
# -1 doesn't skip anything
if os.getenv('FEDISEER_IGNORE_POLL_FAILS', -1) >= 0 and instance.poll_failures > int(os.getenv('FEDISEER_IGNORE_POLL_FAILS', 0)):
if int(os.getenv('FEDISEER_IGNORE_POLL_FAILS', -1)) >= 0 and instance.poll_failures > int(os.getenv('FEDISEER_IGNORE_POLL_FAILS', 0)):
logger.debug(f"Skipped {instance.domain} due to too many poll fails.")
continue
futures.append(executor.submit(refresh_info, instance.domain))