Skip to content

Commit 6f00b29

Browse files
committed
raise an exception in case of no answer
1 parent c44a10c commit 6f00b29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/preprocessor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ def lua_eval(self, name, expr, silent=True):
405405
result = self.servers[name].admin(
406406
'%s%s' % (expr, self.delimiter), silent=silent
407407
)
408+
if not result:
409+
raise LuaPreprocessorException("No answer from instance")
408410
result = yaml.safe_load(result)
409411
if not result:
410412
result = []

0 commit comments

Comments
 (0)