From 11841ff90e1b016e53c1fcdec72fed6845054204 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Wed, 21 Nov 2018 11:53:26 -0800 Subject: [PATCH] Show error without stacktrace in autolink --- autolink | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autolink b/autolink index 7721ac9..be2e02c 100755 --- a/autolink +++ b/autolink @@ -22,7 +22,11 @@ def main(*, dot_files=DOT_FILES_DIR, home_dir=HOME_DIR): for filename in walk_files(dot_files): dot_file = path.join(dot_files, filename) new_file = path.join(home_dir, '.' + filename) - link_to(dot_file, new_file) + try: + link_to(dot_file, new_file) + except ExistingSymlinkError as err: + print(err) + def walk_directories(directory): visited = set()