events: handle types in event contexts
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> #2572
This commit is contained in:
parent
0c53650216
commit
04372e21dd
|
@ -93,6 +93,8 @@ def sanitize_dict(source: dict[Any, Any]) -> dict[Any, Any]:
|
||||||
final_dict[key] = value.hex
|
final_dict[key] = value.hex
|
||||||
elif isinstance(value, (HttpRequest, WSGIRequest)):
|
elif isinstance(value, (HttpRequest, WSGIRequest)):
|
||||||
continue
|
continue
|
||||||
|
elif isinstance(value, type):
|
||||||
|
final_dict[key] = value.__module__ + "." + value.__name__
|
||||||
else:
|
else:
|
||||||
final_dict[key] = value
|
final_dict[key] = value
|
||||||
return final_dict
|
return final_dict
|
||||||
|
|
Reference in New Issue