No need to show the full traceback here

Also I wouldn't consider it fatal if the hook fails.
This commit is contained in:
Markus Unterwaditzer 2015-02-08 19:42:46 +01:00
parent 58e1a027ef
commit e0167abf8c

View file

@ -171,5 +171,5 @@ class FilesystemStorage(Storage):
self.post_hook, fpath)) self.post_hook, fpath))
try: try:
subprocess.call([self.post_hook, fpath]) subprocess.call([self.post_hook, fpath])
except OSError: except OSError as e:
logger.exception('Error executing external hook.') logger.warning('Error executing external hook: {}'.format(str(e)))