From 99e9cbbefb9d8b5b4803b7520c8ec25af54e7a8c Mon Sep 17 00:00:00 2001 From: Jason Montleon Date: Apr 02 2026 15:04:34 +0000 Subject: Add errno.EHOSTUNREACH to is_conn_error ERRNOS Signed-off-by: Jason Montleon --- diff --git a/koji/__init__.py b/koji/__init__.py index cc06126..703f72e 100644 --- a/koji/__init__.py +++ b/koji/__init__.py @@ -2605,7 +2605,7 @@ def is_conn_error(e): # there is no value to an `isinstance` check here; let's just # assume that if the exception has an 'errno' and it's one of # these values, this is a connection error. - ERRNOS = (errno.ECONNRESET, errno.ECONNABORTED, errno.EPIPE) + ERRNOS = (errno.ECONNRESET, errno.ECONNABORTED, errno.EHOSTUNREACH, errno.EPIPE) if getattr(e, 'errno', None) in ERRNOS: return True str_e = str(e)