From 6838d7964f7e2416f311cb0bf00a8eb9aa1756bb Mon Sep 17 00:00:00 2001 From: Brian Engen Date: Sat, 25 May 2019 04:24:46 -0500 Subject: [PATCH] handles empty string in SNS next token (#2177) --- moto/sns/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/sns/models.py b/moto/sns/models.py index 41e83aba4..c764cb25f 100644 --- a/moto/sns/models.py +++ b/moto/sns/models.py @@ -255,7 +255,7 @@ class SNSBackend(BaseBackend): return candidate_topic def _get_values_nexttoken(self, values_map, next_token=None): - if next_token is None: + if next_token is None or not next_token: next_token = 0 next_token = int(next_token) values = list(values_map.values())[