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

Update patcher.py #1574

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Chris7X
Copy link

@Chris7X Chris7X commented Sep 21, 2023

Fix Error:
TypeError: '<=' not supported between instances of 'str' and 'int'

Fix Error: 
TypeError: '<=' not supported between instances of 'str' and 'int'
version_main_int = int(version_main)
# check if version_main_int is less than or equal to e.g 114
self.is_old_chromedriver = version_main and version_main_int <= 114
except ValueError:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
except ValueError:
except (ValueError,TypeError):

See FlareSolverr/FlareSolverr#962.

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

Successfully merging this pull request may close these issues.

2 participants