diff --git a/lib/utils/resume.py b/lib/utils/resume.py index 1e38a7b17..8ef66e141 100644 --- a/lib/utils/resume.py +++ b/lib/utils/resume.py @@ -102,8 +102,8 @@ def resume(expression, payload): return None condition = ( - kb.resumedQueries and conf.url in kb.resumedQueries.keys() - and expression in kb.resumedQueries[conf.url].keys() + kb.resumedQueries and conf.url in kb.resumedQueries + and expression in kb.resumedQueries[conf.url] ) if not condition: