From d7eaee66dc6d2364addc73aec7ed5c591f001799 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 20 Aug 2024 22:28:28 +0200 Subject: [PATCH] coninue on update failed on single file --- dotdrop/updater.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dotdrop/updater.py b/dotdrop/updater.py index 3ee4d58..8ceeb39 100644 --- a/dotdrop/updater.py +++ b/dotdrop/updater.py @@ -303,9 +303,10 @@ class Updater: shutil.copy2(srcpath, dstpath) # self._mirror_file_perms(srcpath, dstpath) except IOError as exc: - msg = f'{srcpath} update failed, do manually: {exc}' + msg = f'{srcpath} update right only failed' + msg += f', do manually: {exc}' self.log.warn(msg) - return False + continue self.log.sub(f'\"{dstpath}\" updated') for i in common: @@ -329,9 +330,9 @@ class Updater: shutil.copy2(srcpath, dstpath) self._mirror_file_perms(srcpath, dstpath) except IOError as exc: - msg = f'{srcpath} update failed, do manually: {exc}' + msg = f'{srcpath} update common failed, do manually: {exc}' self.log.warn(msg) - return False + continue self.log.sub(f'\"{dstpath}\" content updated') return True