djcheckup 0.4.0__tar.gz → 0.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {djcheckup-0.4.0 → djcheckup-0.4.2}/PKG-INFO +1 -1
- {djcheckup-0.4.0 → djcheckup-0.4.2}/pyproject.toml +1 -1
- {djcheckup-0.4.0 → djcheckup-0.4.2}/src/djcheckup/checks.py +8 -3
- {djcheckup-0.4.0 → djcheckup-0.4.2}/LICENSE +0 -0
- {djcheckup-0.4.0 → djcheckup-0.4.2}/README.md +0 -0
- {djcheckup-0.4.0 → djcheckup-0.4.2}/src/djcheckup/__init__.py +0 -0
- {djcheckup-0.4.0 → djcheckup-0.4.2}/src/djcheckup/check_defs.py +0 -0
- {djcheckup-0.4.0 → djcheckup-0.4.2}/src/djcheckup/cli.py +0 -0
- {djcheckup-0.4.0 → djcheckup-0.4.2}/src/djcheckup/outputs.py +0 -0
- {djcheckup-0.4.0 → djcheckup-0.4.2}/src/djcheckup/run.py +0 -0
|
@@ -374,18 +374,23 @@ class SiteChecker:
|
|
|
374
374
|
check_name = "Can I connect to your site?"
|
|
375
375
|
severity_weight = SeverityWeight.HIGH
|
|
376
376
|
success_message = "Connected to your site successfully."
|
|
377
|
-
error_message = "
|
|
377
|
+
error_message = """
|
|
378
|
+
Unable to connect to your site and no further checks can be performed.
|
|
379
|
+
|
|
380
|
+
Error message:
|
|
381
|
+
|
|
382
|
+
"""
|
|
378
383
|
|
|
379
384
|
try:
|
|
380
385
|
response = self.client.get(self.url)
|
|
381
386
|
response.raise_for_status()
|
|
382
387
|
|
|
383
|
-
except httpx.HTTPStatusError:
|
|
388
|
+
except (httpx.RequestError, httpx.HTTPStatusError) as e:
|
|
384
389
|
return CheckResponse(
|
|
385
390
|
name=check_name,
|
|
386
391
|
result=CheckResult.FAILURE,
|
|
387
392
|
severity_score=severity_weight,
|
|
388
|
-
message=error_message,
|
|
393
|
+
message=f"{error_message} ```\n\n> {e}```",
|
|
389
394
|
)
|
|
390
395
|
|
|
391
396
|
self.context = create_context(self.url, self.client, response)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|