diff --git a/osxphotos/utils.py b/osxphotos/utils.py index d54090d3..d478e188 100644 --- a/osxphotos/utils.py +++ b/osxphotos/utils.py @@ -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()}" )