mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Remove unused variables
This commit is contained in:
@ -95,7 +95,7 @@ def auth_receive(request):
|
|||||||
# Now un-urlencode it
|
# Now un-urlencode it
|
||||||
try:
|
try:
|
||||||
data = urlparse.parse_qs(s, strict_parsing=True)
|
data = urlparse.parse_qs(s, strict_parsing=True)
|
||||||
except ValueError, e:
|
except ValueError:
|
||||||
raise Exception("Invalid encrypted data received.")
|
raise Exception("Invalid encrypted data received.")
|
||||||
|
|
||||||
# Check the timestamp in the authentication
|
# Check the timestamp in the authentication
|
||||||
@ -118,7 +118,7 @@ def auth_receive(request):
|
|||||||
changed= True
|
changed= True
|
||||||
if changed:
|
if changed:
|
||||||
user.save()
|
user.save()
|
||||||
except User.DoesNotExist, e:
|
except User.DoesNotExist:
|
||||||
# User not found, create it!
|
# User not found, create it!
|
||||||
|
|
||||||
# NOTE! We have some legacy users where there is a user in
|
# NOTE! We have some legacy users where there is a user in
|
||||||
|
Reference in New Issue
Block a user