1
0
Fork 0

fix error handling

- when using raise_for_status we need to catch an HTTPError, not a ConnectionError
- simplify instance actor - use internal email address since it will never be used anyway, and make default username less likely to already be in use.
This commit is contained in:
Hugh Rundle 2023-01-22 15:59:19 +11:00
parent 317fa5cdfd
commit 803bba71a6
2 changed files with 8 additions and 7 deletions

View file

@ -372,6 +372,4 @@ if HTTP_X_FORWARDED_PROTO:
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
# AUTHORIZED_FETCH Instance Actor
# WARNING this must both be unique - not used by any other user
INSTANCE_ACTOR_USERNAME = DOMAIN
INSTANCE_ACTOR_EMAIL = f"representative@{DOMAIN}"
INSTANCE_ACTOR_USERNAME = "bookwyrm.instance.actor"