From 65f227fe6534eef78baa81f1c90ceadd442b261c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 3 Dec 2018 23:07:13 +0100 Subject: [PATCH] Bug fix (privately reported: --technique=E --where='id=1') --- lib/techniques/error/use.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 773824250..76f2e84b4 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -444,8 +444,11 @@ def errorUse(expression, dump=False): if not value and not abortedFlag: value = _errorFields(expression, expressionFields, expressionFieldsList) - if value and isListLike(value) and len(value) == 1 and isinstance(value[0], basestring): - value = unArrayizeValue(value) + if value and isListLike(value): + if len(value) == 1 and isinstance(value[0], basestring): + value = unArrayizeValue(value) + elif len(value) > 1 and stopLimit == 1: + value = [value] duration = calculateDeltaSeconds(start)