lint: fix bare except and unused variables
This commit is contained in:
@@ -60,7 +60,11 @@ def main() -> int:
|
||||
status, body = fetch(endpoint)
|
||||
if status != 200:
|
||||
raise RuntimeError(f"{endpoint} returned HTTP {status}")
|
||||
if endpoint.endswith(".json") or endpoint.startswith("/api") or endpoint.startswith("/health"):
|
||||
if (
|
||||
endpoint.endswith(".json")
|
||||
or endpoint.startswith("/api")
|
||||
or endpoint.startswith("/health")
|
||||
):
|
||||
json.loads(body.decode("utf-8"))
|
||||
print(f"ok {endpoint}")
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user