From e8607aa42da3257aae210895d5f852cd623138ac Mon Sep 17 00:00:00 2001 From: endorphant Date: Wed, 4 May 2016 20:10:33 -0400 Subject: [PATCH] fixed ejecting from settings panel --- bin/ttbp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/ttbp.py b/bin/ttbp.py index bd3f99b..88e820c 100644 --- a/bin/ttbp.py +++ b/bin/ttbp.py @@ -246,7 +246,10 @@ def main_menu(): pretty_settings += "\n\tpublish dir:\t" +os.path.join(PUBLIC, SETTINGS["publish dir"]) redraw("now changing your settings. press if you didn't mean to do this.\n\ncurrent settings "+pretty_settings+"\n") - setup() + try: + setup() + except KeyboardInterrupt(): + redraw("eject button fired! going home now.") raw_input("\nyou're all good to go, "+chatter.say("friend")+"! hit to continue.\n\n") redraw() elif choice == '5':