Commits

Thomas Gläßle committed ffe1813

Catch KeyboardInterrupt to shutdown udiskie daemon nicely

  • Participants
  • Parent commits b066f2e

Comments (0)

Files changed (1)

File udiskie/cli.py

     # run in daemon mode
     elif run_daemon:
         mounter.mount_all()
-        return daemon.run()
+        try:
+            return daemon.run()
+        except KeyboardInterrupt:
+            pass
 
     # print command line options
     else: