From 198a015c70cd39428de86c9081e904fd27890b9e Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 9 Oct 2019 01:14:02 +0100 Subject: [PATCH] Fix for IndexError thrown by _consume_separated_string --- houdini/converters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/converters.py b/houdini/converters.py index 692a366..b607cdc 100644 --- a/houdini/converters.py +++ b/houdini/converters.py @@ -65,7 +65,7 @@ class _ArgumentDeserializer: raise ChecklistError('Could not invoke listener due to checklist failure') def _consume_separated_string(self, ctx): - if ctx.argument[0] in self.string_delimiter: + if ctx.argument and ctx.argument[0] in self.string_delimiter: while not ctx.argument.endswith(ctx.argument[0]): ctx.argument += self.string_separator + next(ctx.arguments) ctx.argument = ctx.argument[1:-1]