We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ed26ef commit 8c73d70Copy full SHA for 8c73d70
microscope/devices.py
@@ -253,7 +253,10 @@ def initialize(self):
253
254
def shutdown(self):
255
"""Shutdown the device for a prolonged period of inactivity."""
256
- self.disable()
+ try:
257
+ self.disable()
258
+ except Exception as e:
259
+ _logger.debug("Exeption in disable() during shutdown: %s" % e)
260
_logger.info("Shutting down ... ... ...")
261
self._on_shutdown()
262
_logger.info("... ... ... ... shut down completed.")
0 commit comments