Exit without setting error code on keyboard interrupt

This commit is contained in:
Eric Torres 2022-01-10 11:22:16 -08:00
parent a4761f92d3
commit fb317b4fb8

View File

@ -96,7 +96,7 @@ if __name__ == "__main__":
try: try:
selected_file = fzf.select_file_with_fzf(files) selected_file = fzf.select_file_with_fzf(files)
except KeyboardInterrupt: except KeyboardInterrupt:
exit(error.E_INTERRUPT) exit()
except fzf.FZFError as e: except fzf.FZFError as e:
print(e) print(e)
exit(e.exit_code) exit(e.exit_code)