mirror of https://github.com/m-labs/artiq.git
DeviceManager: fix close exception error message
This commit is contained in:
parent
402a5d3376
commit
795c4372fa
|
@ -101,8 +101,9 @@ class DeviceManager:
|
|||
dev.close_rpc()
|
||||
elif hasattr(dev, "close"):
|
||||
dev.close()
|
||||
except Exception as e:
|
||||
logger.warning("Exception %r when closing device %r", e, dev)
|
||||
except:
|
||||
logger.warning("Exception raised when closing device %r:",
|
||||
dev, exc_info=True)
|
||||
self.active_devices.clear()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue