kopia lustrzana https://gitlab.com/jaywink/federation
catch IndexError exception
rodzic
373aaa8da0
commit
32faf8e3b8
|
@ -215,7 +215,7 @@ def try_retrieve_webfinger_document(handle: str) -> Optional[str]:
|
|||
"""
|
||||
try:
|
||||
host = handle.split("@")[1]
|
||||
except AttributeError:
|
||||
except (AttributeError, IndexError):
|
||||
logger.warning("retrieve_webfinger_document: invalid handle given: %s", handle)
|
||||
return None
|
||||
document, code, exception = fetch_document(
|
||||
|
|
Ładowanie…
Reference in New Issue