Skip to content

Update patcher.py#1574

Open
Chris7X wants to merge 1 commit intoultrafunkamsterdam:masterfrom
Chris7X:patch-1
Open

Update patcher.py#1574
Chris7X wants to merge 1 commit intoultrafunkamsterdam:masterfrom
Chris7X:patch-1

Conversation

@Chris7X
Copy link
Copy Markdown

@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:
Copy link
Copy Markdown

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