mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 20:59:22 -05:00
Flake8 and fix whoopsie
This commit is contained in:
parent
42c43cfafd
commit
a88bc67f88
@ -224,7 +224,9 @@ class RoomSendEventRestServlet(ClientV1RestServlet):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
res_deferred = ObservableDeferred(self.on_POST(request, room_id, event_type, txn_id))
|
res_deferred = ObservableDeferred(
|
||||||
|
self.on_POST(request, room_id, event_type, txn_id)
|
||||||
|
)
|
||||||
self.txns.store_client_transaction(request, txn_id, res_deferred)
|
self.txns.store_client_transaction(request, txn_id, res_deferred)
|
||||||
response = yield res_deferred.observe()
|
response = yield res_deferred.observe()
|
||||||
defer.returnValue(response)
|
defer.returnValue(response)
|
||||||
@ -625,13 +627,13 @@ class RoomMembershipRestServlet(ClientV1RestServlet):
|
|||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_PUT(self, request, room_id, membership_action, txn_id):
|
def on_PUT(self, request, room_id, membership_action, txn_id):
|
||||||
try:
|
try:
|
||||||
res_deferred = ObservableDeferred(self.txns.get_client_transaction(request, txn_id))
|
res_deferred = self.txns.get_client_transaction(request, txn_id)
|
||||||
res = yield res_deferred.observe()
|
res = yield res_deferred.observe()
|
||||||
defer.returnValue(res)
|
defer.returnValue(res)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
res_deferred = ObservableDeffself.on_POST(request, room_id, membership_action, txn_id)
|
res_deferred = ObservableDeferred(self.on_POST(request, room_id, membership_action, txn_id))
|
||||||
self.txns.store_client_transaction(request, txn_id, res_deferred)
|
self.txns.store_client_transaction(request, txn_id, res_deferred)
|
||||||
response = yield res_deferred.observe()
|
response = yield res_deferred.observe()
|
||||||
defer.returnValue(response)
|
defer.returnValue(response)
|
||||||
@ -675,7 +677,9 @@ class RoomRedactEventRestServlet(ClientV1RestServlet):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
res_deferred = ObservableDeferred(self.on_POST(request, room_id, event_id, txn_id))
|
res_deferred = ObservableDeferred(
|
||||||
|
self.on_POST(request, room_id, event_id, txn_id)
|
||||||
|
)
|
||||||
self.txns.store_client_transaction(request, txn_id, res_deferred)
|
self.txns.store_client_transaction(request, txn_id, res_deferred)
|
||||||
response = yield res_deferred.observe()
|
response = yield res_deferred.observe()
|
||||||
defer.returnValue(response)
|
defer.returnValue(response)
|
||||||
|
Loading…
Reference in New Issue
Block a user