mirror of
https://github.com/element-hq/synapse
synced 2024-09-01 00:30:29 +00:00
Fix 500 error when we get an error handling a PDU
FederationServer doesn't have a send_failure (and nor does its subclass, ReplicationLayer), so this was failing. I'm not really sure what the idea behind send_failure is, given (a) we don't do anything at the other end with it except log it, and (b) we also send back the failure via the transaction response. I suspect there's a whole lot of dead code around it, but for now I'm just removing the broken bit.
This commit is contained in:
parent
74f99f227c
commit
582bd19ee9
1 changed files with 0 additions and 1 deletions
|
@ -192,7 +192,6 @@ class FederationServer(FederationBase):
|
|||
pdu_results[event_id] = {}
|
||||
except FederationError as e:
|
||||
logger.warn("Error handling PDU %s: %s", event_id, e)
|
||||
self.send_failure(e, transaction.origin)
|
||||
pdu_results[event_id] = {"error": str(e)}
|
||||
except Exception as e:
|
||||
pdu_results[event_id] = {"error": str(e)}
|
||||
|
|
Loading…
Reference in a new issue