Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def scan(self, addr):
self._adapter.setaddr(addr)
try:
self._dev = self._adapter.start_client(self._addr)#performs connection
except STATE_DISCONNECTED:
raise LinkOpenException