mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Define u to stop function whining if nothing is passed
This commit is contained in:
@@ -60,6 +60,7 @@ class LoginHandler(BaseHandler):
|
|||||||
|
|
||||||
def read(self, request, id=None):
|
def read(self, request, id=None):
|
||||||
|
|
||||||
|
u = None
|
||||||
if id:
|
if id:
|
||||||
try:
|
try:
|
||||||
u = User.objects.get(id=id)
|
u = User.objects.get(id=id)
|
||||||
|
|||||||
Reference in New Issue
Block a user