Attempts to fetch(None) get None.

It sometimes happens in the wild that someone submits "inReplyTo: null" or similar.
status-serialisers
Marnanel Thurman 2020-09-30 16:13:02 +01:00
rodzic 3d38c6618a
commit b5a7f7114d
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -65,6 +65,9 @@ def fetch(address,
On all other errors, which are logged, returns None.
"""
if address is None:
return None
wanted = _parse_address(address)
wanted['type'] = expected_type