Commit d5dc849a authored by Jérome Perrin's avatar Jérome Perrin

TimerService: explicitly don't support TimerResponse.redirect

This revisits b404b724 (TimerService: make TimerResponse support
redirect(), 2022-04-12) by making the method present, but explicitly
an unsupported operation, to make it clear that redirecting does
not make sense in the context of timer service.
parent 5f63dc1f
......@@ -126,7 +126,9 @@ class TimerResponse(BaseResponse):
pass
def redirect(self, *args, **kw):
pass
# redirects only make sense with a real HTTP client and does not
# make sense with timer service.
raise RuntimeError("redirect is not supported")
def unauthorized(self):
pass
......
Markdown is supported
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