`err` isn't used anyways, could just do `except SocketTimeout` which is valid for both Pythons iirc.