simplified
This commit is contained in:
parent
90fd12bce1
commit
6c122b6117
|
@ -62,7 +62,6 @@ class Patcher(object):
|
||||||
prefix = "undetected"
|
prefix = "undetected"
|
||||||
self.user_multi_procs = user_multi_procs
|
self.user_multi_procs = user_multi_procs
|
||||||
|
|
||||||
try:
|
|
||||||
if version_main is not None:
|
if version_main is not None:
|
||||||
if isinstance(version_main, (float, int, str)):
|
if isinstance(version_main, (float, int, str)):
|
||||||
version_main = int(version_main)
|
version_main = int(version_main)
|
||||||
|
@ -72,8 +71,6 @@ class Patcher(object):
|
||||||
else:
|
else:
|
||||||
version_main = 0
|
version_main = 0
|
||||||
self.is_old_chromedriver = False
|
self.is_old_chromedriver = False
|
||||||
except ValueError:
|
|
||||||
raise
|
|
||||||
|
|
||||||
# Needs to be called before self.exe_name is accessed
|
# Needs to be called before self.exe_name is accessed
|
||||||
self._set_platform_name()
|
self._set_platform_name()
|
||||||
|
|
Loading…
Reference in New Issue