Fix log for symlinks to files that don't exist

pull/21/head
Dan Puttick 2017-08-07 17:57:42 -04:00
parent 5ca1f70fe2
commit 058a446d78
1 changed files with 2 additions and 0 deletions

View File

@ -490,6 +490,8 @@ class GroomerLogger(object):
file_hash = Logging.computehash(file_path)[:6] file_hash = Logging.computehash(file_path)[:6]
except IsADirectoryError: except IsADirectoryError:
file_hash = 'directory' file_hash = 'directory'
except FileNotFoundError:
file_hash = '------'
if file_props['is_symlink']: if file_props['is_symlink']:
symlink_template = "+- NOT COPIED: symbolic link to {name} ({sha_hash})" symlink_template = "+- NOT COPIED: symbolic link to {name} ({sha_hash})"
log_string = symlink_template.format( log_string = symlink_template.format(