You don't need this block. ``KeyboardInterrupt`` doesn't inherit from ``Exception``, so your ``except Exception`` block below won't catch ctrl-c.