1
0
Fork 0

resolve SECURE_FETCH bugs

ERROR HANDLING FIXES

- use raise_for_status() to pass through response code
- handle exceptions where no response object is passed through

INSTANCE ACTOR

- models.User.objects.create_user function cannot take an ID
- allow instance admins to determine username and email for instance actor in settings.py
This commit is contained in:
Hugh Rundle 2023-01-20 16:32:17 +11:00
parent 0da5473b0c
commit 4108238716
3 changed files with 24 additions and 21 deletions

View file

@ -244,7 +244,7 @@ def get_data(url, params=None, timeout=settings.QUERY_TIMEOUT):
raise ConnectorException(err)
if not resp.ok:
raise ConnectorException()
resp.raise_for_status()
try:
data = resp.json()
except ValueError as err: