mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
s3: dynamically import botocore
https://github.com/iterative/dvc/issues/2927
This commit is contained in:
+2
-1
@@ -5,7 +5,6 @@ import logging
|
||||
import os
|
||||
import threading
|
||||
|
||||
from botocore.exceptions import ClientError
|
||||
from funcy import cached_property, wrap_prop
|
||||
|
||||
from dvc.config import Config
|
||||
@@ -209,6 +208,8 @@ class RemoteS3(RemoteBASE):
|
||||
return self._list_paths(self.path_info)
|
||||
|
||||
def isfile(self, path_info):
|
||||
from botocore.exceptions import ClientError
|
||||
|
||||
if path_info.path.endswith("/"):
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user