Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def close(self):
try:
self._close_installed_devices_session()
except errors.DriverError:
self._handle = 0
raise
self._handle = 0