Closed willgearty closed 1 year ago
It looks like there are two cases where the regProf variable isn't set in profile_editor:
regProf
profile_editor
This is an issue because we then call regProf to identify if a user is new or not later in profile_editor (https://github.com/learning-unlimited/ESP-Website/pull/3494): https://github.com/learning-unlimited/ESP-Website/blob/1564f16d214c1293095e17eb515eaf6027e6ad32/esp/esp/web/views/myesp.py#L255
I suppose we could either change line 255 and not call regProf (instead, we could set new user within the above if/elses) or update the above two cases to set regProf.
Reported by Princeton (via @hwatheod)
I don't think there's a problem in case number 1. The pass just indicates an empty except clause; it doesn't break out of the underlying else clause.
pass
except
else
Ah, you are right, thanks @hwatheod!
It looks like there are two cases where the
regProf
variable isn't set inprofile_editor
:This is an issue because we then call
regProf
to identify if a user is new or not later inprofile_editor
(https://github.com/learning-unlimited/ESP-Website/pull/3494): https://github.com/learning-unlimited/ESP-Website/blob/1564f16d214c1293095e17eb515eaf6027e6ad32/esp/esp/web/views/myesp.py#L255I suppose we could either change line 255 and not call
regProf
(instead, we could set new user within the above if/elses) or update the above two cases to setregProf
.Reported by Princeton (via @hwatheod)