Merge "Fix dictionary changed size during iteration error with Python 3"

This commit is contained in:
Zuul 2019-06-17 04:17:05 +00:00 committed by Gerrit Code Review
commit 56aee2e7cc
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ def clear_forms_data(func):
LOG.debug('Clearing forms data for application {0}.'.format(fqn))
services.get_apps_data(request)[app_id] = {}
LOG.debug('Clearing any leftover wizard step data.')
for key in request.session.keys():
for key in list(request.session.keys()):
# TODO(tsufiev): unhardcode the prefix for wizard step data
if key.startswith('wizard_wizard'):
request.session.pop(key)