mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +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):
|
||||
|
||||
u = None
|
||||
if id:
|
||||
try:
|
||||
u = User.objects.get(id=id)
|
||||
|
||||
Reference in New Issue
Block a user