mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-12 07:18:23 +01:00
link: use proper exceptions (#6852)
* link: use proper exceptions * system: use ENOTSUP instead of NotImplementedErrorwq
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import errno
|
||||
import logging
|
||||
from itertools import chain
|
||||
|
||||
@@ -77,7 +78,9 @@ def _try_links(cache, from_info, to_info, link_types):
|
||||
_verify_link(cache, to_info, link_types[0])
|
||||
return
|
||||
|
||||
except DvcException as exc:
|
||||
except OSError as exc:
|
||||
if exc.errno not in [errno.EXDEV, errno.ENOTSUP]:
|
||||
raise
|
||||
logger.debug(
|
||||
"Cache type '%s' is not supported: %s", link_types[0], exc
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user