Skip to content
Snippets Groups Projects
Unverified Commit 3f6c7dd4 authored by Jeremy Bowman's avatar Jeremy Bowman Committed by GitHub
Browse files

Merge pull request #19141 from edx/jmbowman/TE-2790

TE-2790 Fix microsite config leak in tests
parents 57a09b7b f1668c3e
No related merge requests found
......@@ -737,8 +737,11 @@ def set_microsite(domain):
"""
Execute the function after setting up the microsite.
"""
microsite.set_by_domain(domain)
return func(request, *args, **kwargs)
try:
microsite.set_by_domain(domain)
return func(request, *args, **kwargs)
finally:
microsite.clear()
return inner
return decorator
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment