mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Specify the type of exception caught
This commit is contained in:
parent
7552998bbe
commit
88e78df91a
@ -79,7 +79,7 @@ async def handle_legacy_login(p, credentials: Credentials):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
login_key = login_key.decode()
|
login_key = login_key.decode()
|
||||||
except:
|
except AttributeError:
|
||||||
return await p.close()
|
return await p.close()
|
||||||
|
|
||||||
login_hash = Crypto.encrypt_password(login_key + p.server.config.auth_key) + login_key
|
login_hash = Crypto.encrypt_password(login_key + p.server.config.auth_key) + login_key
|
||||||
|
Loading…
Reference in New Issue
Block a user