<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_ubridge_connection(self, adapter_number, nio):
 """ Update a connection in uBridge. :param nio: NIO instance :param adapter_number: adapter number """

        try:
            bridge_name = self._get_vnet(adapter_number)
        except VMwareError:
            return  # vnet not yet available
        yield from self._ubridge_apply_filters(bridge_name, nio.filters)