Added message of failure to add account
This commit is contained in:
parent
9c095779a5
commit
01ab461d28
@ -219,9 +219,13 @@ def _add_account5(
|
|||||||
login, passwd, text.encode("utf-8")
|
login, passwd, text.encode("utf-8")
|
||||||
)
|
)
|
||||||
|
|
||||||
database.add.add_account(engine, mes.from_user.id, name, salt, enc_login, enc_pass)
|
result = database.add.add_account(
|
||||||
|
engine, mes.from_user.id, name, salt, enc_login, enc_pass
|
||||||
|
)
|
||||||
|
|
||||||
_send_tmp_message(bot, mes.chat.id, "Успех")
|
_send_tmp_message(
|
||||||
|
bot, mes.chat.id, "Успех" if result else "Произошла не предвиденная ошибка"
|
||||||
|
)
|
||||||
|
|
||||||
del data, name, login, passwd, enc_login
|
del data, name, login, passwd, enc_login
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user