From a8622b6b908aef4a02e9a16d18d22f3afcd43c13 Mon Sep 17 00:00:00 2001 From: britiscurious Date: Fri, 8 May 2020 22:56:24 +0200 Subject: [PATCH] Update osxphotos/utils.py Co-authored-by: Rhet Turnbull --- osxphotos/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()}" )