Invalid error message in validation of environments
During the validation of an environment, the following 500 internal error may happen:
Internal Server Error: /platform/admin/experiments/experiment/562/ Traceback (most recent call last): File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 583, in wrapper return self.admin_site.admin_view(view)(*args, **kwargs) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 105, in _wrapped_view response = view_func(request, *args, **kwargs) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 52, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 206, in inner return view(request, *args, **kwargs) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1456, in change_view return self.changeform_view(request, object_id, form_url, extra_context) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 105, in _wrapped_view response = view_func(request, *args, **kwargs) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 25, in bound_func return func.get(self, type(self))(*args2, **kwargs2) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/db/transaction.py", line 394, in inner return func(*args, **kwargs) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1396, in changeform_view if form.is_valid(): File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/forms/forms.py", line 162, in is_valid return self.is_bound and not bool(self.errors) File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/forms/forms.py", line 154, in errors self.full_clean() File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/forms/forms.py", line 353, in full_clean self._clean_fields() File "/remote/sw/beat.env.deploy/usr/lib/python2.7/site-packages/django/forms/forms.py", line 371, in clean_fields value = getattr(self, 'clean%s' % name)() File "/remote/sw/beat.web/src/beat.web/beat/web/experiments/admin.py", line 66, in clean_file self.cleaned_data['toolchain'].json()) File "/remote/sw/beat.web/src/beat.web/beat/web/experiments/models.py", line 88, in validate_experiment return xp, xp.errors + validate_environments(xp) File "/remote/sw/beat.web/src/beat.web/beat/web/experiments/models.py", line 63, in validate_environments errors.append("The combination of queue '%s' with environment '%s (%s)' in the global experiment configuration does not exist" % (q, env_name, env_version)) UnboundLocalError: local variable 'q' referenced before assignment