Update osxphotos/utils.py

Co-authored-by: Rhet Turnbull <rturnbull@gmail.com>
This commit is contained in:
britiscurious
2020-05-08 22:56:24 +02:00
committed by GitHub
parent cceab62993
commit a8622b6b90

View File

@@ -134,7 +134,7 @@ def _hardlink_file(src, dest):
# if error on copy, subprocess will raise CalledProcessError
try:
os.link(src, dest)
except subprocess.CalledProcessError as e:
except Exception as e:
logging.critical(
f"ln returned error: {e.returncode} {e.stderr.decode(sys.getfilesystemencoding()).rstrip()}"
)