From ce2d14c34e3698732684825ec7d745bd1d16775a Mon Sep 17 00:00:00 2001 From: g1879 Date: Tue, 12 Dec 2023 23:53:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/_elements/chromium_element.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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):