From 855d7366c7273c7b72eb576a129fda54bd0c03dc Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 6 Aug 2024 09:41:37 +0930 Subject: [PATCH] CI: don't fall over if cannot connect to upload server. ``` > warnings.warn(f"Error reporting testrun: {e}: {e.read()}") E AttributeError: 'URLError' object has no attribute 'read' ``` Signed-off-by: Rusty Russell --- conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conftest.py b/conftest.py index c88f4ae2b..65b3e3236 100644 --- a/conftest.py +++ b/conftest.py @@ -69,4 +69,4 @@ def pytest_pyfunc_call(pyfuncitem): except Exception as e: import warnings - warnings.warn(f"Error reporting testrun: {e}: {e.read()}") + warnings.warn(f"Error reporting testrun: {e}")