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:
parent
317fa5cdfd
commit
803bba71a6
2 changed files with 8 additions and 7 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue