diff --git a/DrissionPage/_elements/chromium_element.py b/DrissionPage/_elements/chromium_element.py index ebf0796..71353d8 100644 --- a/DrissionPage/_elements/chromium_element.py +++ b/DrissionPage/_elements/chromium_element.py @@ -1374,9 +1374,11 @@ def convert_argument(arg): from math import inf if arg == inf: return {'unserializableValue': 'Infinity'} - if arg == -inf: + elif arg == -inf: return {'unserializableValue': '-Infinity'} + raise TypeError(f'不支持参数{arg}的类型:{type(arg)}') + class Pseudo(object): def __init__(self, ele):