Add timeout to base_activity.py

An instance of requests.get was missing a timeout; this commit adds a timeout of 15 as used in other places in this codebase which already have timeouts.
This commit is contained in:
Margaret Fero 2024-03-01 20:02:40 -08:00 committed by GitHub
parent db97d76a24
commit 1ae9870862
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -423,6 +423,7 @@ def get_activitypub_data(url):
"Date": now,
"Signature": make_signature("get", sender, url, now),
},
timeout=15
)
except requests.RequestException:
raise ConnectorException()