Noticed this on visual inspection, but suspect it is wrong. Code has:
@gen.coroutine
def get(self):
raw_user = self.get_current_user()
if raw_user:
if self.force_new_server and user.running:
# Stop user's current server if it is running
# so we get a new one.
status = yield raw_user.spawner.poll_and_notify()
if status is None:
yield self.stop_single_user(raw_user)
There is a check user.running, but the user variable isn't defined.
So suspect that if force_new_server is set True this code will fail.
Noticed this on visual inspection, but suspect it is wrong. Code has:
There is a check
user.running
, but theuser
variable isn't defined.So suspect that if
force_new_server
is setTrue
this code will fail.