Specify the type of exception caught

This commit is contained in:
rsakeys 2020-05-17 20:40:06 +01:00
parent 7552998bbe
commit 88e78df91a

View File

@ -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