Skip to content

Commit

Permalink
fix: comet validation needed is_ok on response instead of ok (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreulavelle authored Jul 22, 2024
1 parent 563159c commit 5f8d8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/scrapers/comet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}", )
Expand Down

0 comments on commit 5f8d8c4

Please sign in to comment.