From 5f8d8c42a8d02f586121da072697d40c8e5313ad Mon Sep 17 00:00:00 2001 From: Spoked <5782630+dreulavelle@users.noreply.github.com> Date: Mon, 22 Jul 2024 13:37:07 -0700 Subject: [PATCH] fix: comet validation needed is_ok on response instead of ok (#557) --- src/program/scrapers/comet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/program/scrapers/comet.py b/src/program/scrapers/comet.py index 26b1a2f0..b814a2b7 100644 --- a/src/program/scrapers/comet.py +++ b/src/program/scrapers/comet.py @@ -53,7 +53,7 @@ def validate(self) -> bool: try: url = f"{self.settings.url}/manifest.json" response = ping(url=url, timeout=self.timeout) - if response.ok: + if response.is_ok: return True except Exception as e: logger.error(f"Comet failed to initialize: {e}", )