Fix AttributeHandler.get with no Attributes. Also make return_list=True return [] rather than [None]. Resolves #1866

This commit is contained in:
Griatch 2019-09-08 19:18:19 +02:00
parent ea07a81696
commit bb5324ba52
3 changed files with 21 additions and 28 deletions

View file

@ -223,7 +223,7 @@ def _run_code_snippet(caller, pycode, mode="eval", measure_time=False,
sys.stdout = old_stdout
sys.stderr = old_stderr
if not ret:
if ret is None:
return
for session in sessions: