Skip to content
Snippets Groups Projects
Commit cb9c4657 authored by Erik Johnston's avatar Erik Johnston
Browse files

Use SynapseError 504 for Timeout errors

parent 3c79bdd7
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from synapse.api.errors import SynapseError
from synapse.util.logcontext import PreserveLoggingContext
from twisted.internet import defer, reactor, task
......@@ -80,7 +81,7 @@ class Clock(object):
def timed_out_fn():
try:
ret_deferred.errback(RuntimeError("Timed out"))
ret_deferred.errback(SynapseError(504, "Timed out"))
except:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment