From aadcb6298d0b5d00704a8745d6a7c87eaaabd0be Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 23 May 2018 11:37:25 +0100 Subject: [PATCH] Fix non integer limit --- synapse/storage/stream.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py index 65919ac7be..d048dd9579 100644 --- a/synapse/storage/stream.py +++ b/synapse/storage/stream.py @@ -757,7 +757,8 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore): bounds += " AND " + filter_clause args.extend(filter_args) - args.append(int(limit)) + limit = int(limit) + args.append(limit) sql = ( "SELECT event_id, chunk_id, topological_ordering, stream_ordering"