Skip to content

Commit 408974a

Browse files
authored
Avoid rare exceptions when object is not seen as file-like (#458)
1 parent 2dfb069 commit 408974a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servicex/minio_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def list_bucket(self) -> List[ResultFile]:
7777
size=obj.size,
7878
extension=obj.object_name.split(".")[-1],
7979
)
80-
for obj in objects
80+
for obj in objects if not obj.is_dir
8181
]
8282

8383
async def download_file(

0 commit comments

Comments
 (0)