mirror of
https://github.com/solero/houdini.git
synced 2024-11-09 20:58:20 +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:
|
||||
login_key = login_key.decode()
|
||||
except:
|
||||
except AttributeError:
|
||||
return await p.close()
|
||||
|
||||
login_hash = Crypto.encrypt_password(login_key + p.server.config.auth_key) + login_key
|
||||
|
Loading…
Reference in New Issue
Block a user