如果我定义一个函数,是否有可能为 kwargs.get 引发异常?例如,
def func(**kwargs):
try:
a = kwargs.get("a")
except Exception as e:
raise ValueError("Would I ever see this error? \n ERROR: %s" % e )
如果我定义一个函数,是否有可能为 kwargs.get 引发异常?例如,
def func(**kwargs):
try:
a = kwargs.get("a")
except Exception as e:
raise ValueError("Would I ever see this error? \n ERROR: %s" % e )