From cceab62993930a90a0236b7b36ddf4553bd0e867 Mon Sep 17 00:00:00 2001 From: britiscurious Date: Fri, 8 May 2020 22:56:12 +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 2dffa579..d54090d3 100644 --- a/osxphotos/utils.py +++ b/osxphotos/utils.py @@ -133,7 +133,7 @@ def _hardlink_file(src, dest): # if error on copy, subprocess will raise CalledProcessError try: - result = subprocess.run(command, check=True, stderr=subprocess.PIPE) + os.link(src, dest) except subprocess.CalledProcessError as e: logging.critical( f"ln returned error: {e.returncode} {e.stderr.decode(sys.getfilesystemencoding()).rstrip()}"