Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response 的判断 #258

Open
TTTSHU opened this issue Jun 13, 2024 · 1 comment
Open

response 的判断 #258

TTTSHU opened this issue Jun 13, 2024 · 1 comment

Comments

@TTTSHU
Copy link

TTTSHU commented Jun 13, 2024

需知

可否写成这样
if response is None:
response = (
request_temp.get_response()
if not setting.RESPONSE_CACHED_USED
else request_temp.get_response_from_cached(
save_cached=False
)
)

问题
这个response 为404的时候我不希望走进判断逻辑里面重新下载

截图
image
代码

@kyle-srp
Copy link

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants