Skip to content

Commit 213eb6c

Browse files
authored
fix: the bug when auto_mount=True (#2009)
* fix: the bug when auto_mount=True * fix: the bug when auto_mount=True
1 parent 94d138e commit 213eb6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

qlib/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ def _mount_nfs_uri(provider_uri, mount_path, auto_mount: bool = False):
140140
_command_log = [line for line in _command_log if _remote_uri in line]
141141
if len(_command_log) > 0:
142142
for _c in _command_log:
143-
_temp_mount = _c.decode("utf-8").split(" ")[2]
143+
if isinstance(_c, str):
144+
_temp_mount = _c.split(" ")[2]
145+
else:
146+
_temp_mount = _c.decode("utf-8").split(" ")[2]
144147
_temp_mount = _temp_mount[:-1] if _temp_mount.endswith("/") else _temp_mount
145148
if _temp_mount == _mount_path:
146149
_is_mount = True

0 commit comments

Comments
 (0)