Update osxphotos/utils.py
Co-authored-by: Rhet Turnbull <rturnbull@gmail.com>
This commit is contained in:
@@ -134,7 +134,7 @@ def _hardlink_file(src, dest):
|
|||||||
# if error on copy, subprocess will raise CalledProcessError
|
# if error on copy, subprocess will raise CalledProcessError
|
||||||
try:
|
try:
|
||||||
os.link(src, dest)
|
os.link(src, dest)
|
||||||
except subprocess.CalledProcessError as e:
|
except Exception as e:
|
||||||
logging.critical(
|
logging.critical(
|
||||||
f"ln returned error: {e.returncode} {e.stderr.decode(sys.getfilesystemencoding()).rstrip()}"
|
f"ln returned error: {e.returncode} {e.stderr.decode(sys.getfilesystemencoding()).rstrip()}"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user