Dicts that use {'foo': "bar", **baz} syntax have key set to None for baz, we need to check it before accessing an attribute, otherwise we get an error like that:
File "/Users/foobar/python3.10/site-packages/logging_format/visitor.py", line 149, in visit_Dict
if key.s in RESERVED_ATTRS:
AttributeError: 'NoneType' object has no attribute 's'
Dicts that use
{'foo': "bar", **baz}
syntax havekey
set to None forbaz
, we need to check it before accessing an attribute, otherwise we get an error like that: