Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rachpt committed Jun 4, 2020

Verified

This commit was signed with the committer’s verified signature.
sergio-costas Sergio Costas
1 parent 183e086 commit ee6a53e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cloud189/cli/cli.py
Original file line number Diff line number Diff line change
@@ -51,7 +51,6 @@ def bye(self):
if self._task_mgr.has_alive_task():
info("有任务在后台运行, 退出请直接关闭窗口")
else:
print(type(self._work_id), self._work_id)
config.work_id = self._work_id
exit_cmd(0)

@@ -80,7 +79,7 @@ def refresh(self, dir_id=None):
"""刷新当前文件夹和路径信息"""
dir_id = self._work_id if dir_id is None else dir_id
self._file_list, self._path_list = self._disk.get_file_list(dir_id)
if not self._file_list or not self._path_list:
if not self._file_list and not self._path_list:
error(f"文件 id 无效 {dir_id=}, {self._work_id=}")
return None
self._prompt = '/'.join(self._path_list.all_name) + ' > '

0 comments on commit ee6a53e

Please sign in to comment.