Skip to content

Commit

Permalink
Merge pull request #61 from fzls/避免直接使用未设置超时参数的requests.get
Browse files Browse the repository at this point in the history
fixed #61
  • Loading branch information
zaxtyson authored May 15, 2021
2 parents b1cb295 + 15f3532 commit 779da62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lanzou/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lanzou.api.core import LanZouCloud

version = '2.6.5'
version = '2.6.5.1'

__all__ = ['utils', 'types', 'models', 'LanZouCloud', 'version']
2 changes: 1 addition & 1 deletion lanzou/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ def get_folder_info_by_url(self, share_url, dir_pwd='') -> FolderDetail:
if is_file_url(share_url):
return FolderDetail(LanZouCloud.URL_INVALID)
try:
html = requests.get(share_url, headers=self._headers).text
html = self._get(share_url, headers=self._headers).text
except requests.RequestException:
return FolderDetail(LanZouCloud.NETWORK_ERROR)
if '文件不存在' in html or '文件取消' in html:
Expand Down

0 comments on commit 779da62

Please sign in to comment.