]> kaliko git repositories - mpd-sima.git/blobdiff - sima/core.py
ci: Fixed unittest
[mpd-sima.git] / sima / core.py
index 7f3631cfb610c03346218c032da5d95e9ce143ad..ed4e0e1115ef93a96b96048ef8b83780fc61ae21 100644 (file)
@@ -145,10 +145,12 @@ class Sima(Daemon):
         """
         self.log.warning('Starting shutdown.')
         # Cleaning pending command
-        self.player.clean()
-        self.foreach_plugin('shutdown')
-        self.player.disconnect()
-
+        try:
+            self.player.clean()
+            self.foreach_plugin('shutdown')
+            self.player.disconnect()
+        except PlayerError as err:
+            self.log.error('Player error during shutdown: %s', err)
         self.log.info('The way is shut, it was made by those who are dead. '
                       'And the dead keep it…')
         self.log.info('bye...')