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

min_version和max_version设置未生效 #5

Open
luoshun1 opened this issue Sep 2, 2022 · 3 comments
Open

min_version和max_version设置未生效 #5

luoshun1 opened this issue Sep 2, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@luoshun1
Copy link

luoshun1 commented Sep 2, 2022

image
我在设置了min_version和max_version后未生效, 是ChromeUA初始化的方式不对吗?
image

@ihandmine ihandmine added the bug Something isn't working label Sep 7, 2022
@ihandmine
Copy link
Owner

ihandmine commented Sep 7, 2022

升级到1.0.9版本 已经修复该问题, 并且支持新写法(并不影响原来的用法):
image

@k103hub
Copy link

k103hub commented Sep 10, 2022

from anti_useragent import UserAgent
ua = UserAgent()

assert isinstance(self.min_version, int), 'Min Version must be int'
AssertionError: Min Version must be int

@ihandmine
Copy link
Owner

ihandmine commented Sep 19, 2022

感谢这位兄弟: #6 已经帮我发现这个问题了, 还没来得及发新版, 最新已回复#7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants