From e0167abf8c75c0fbafe828cc5973c88bce1f4bd9 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sun, 8 Feb 2015 19:42:46 +0100 Subject: [PATCH] No need to show the full traceback here Also I wouldn't consider it fatal if the hook fails. --- vdirsyncer/storage/filesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vdirsyncer/storage/filesystem.py b/vdirsyncer/storage/filesystem.py index f824b31..773b4fc 100644 --- a/vdirsyncer/storage/filesystem.py +++ b/vdirsyncer/storage/filesystem.py @@ -171,5 +171,5 @@ class FilesystemStorage(Storage): self.post_hook, fpath)) try: subprocess.call([self.post_hook, fpath]) - except OSError: - logger.exception('Error executing external hook.') + except OSError as e: + logger.warning('Error executing external hook: {}'.format(str(e)))