mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:14:52 -04:00
Correctly raise exceptions for ratelimitng. Ratelimit on 401
This commit is contained in:
parent
6d6591880e
commit
df4ecff5a9
2 changed files with 6 additions and 4 deletions
|
@ -504,7 +504,7 @@ class TransactionQueue(object):
|
|||
code = e.code
|
||||
response = e.response
|
||||
|
||||
if e.code == 429 or 500 <= e.code:
|
||||
if e.code in (401, 404, 429) or 500 <= e.code:
|
||||
logger.info(
|
||||
"TX [%s] {%s} got %d response",
|
||||
destination, txn_id, code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue