mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-21 04:41:18 +00:00
chore(core): clean/improve create_new_session.py
[no changelog]
This commit is contained in:
parent
cd649b1f78
commit
51d9607341
@ -31,13 +31,11 @@ async def create_new_session(message: ThpCreateNewSession) -> ThpNewSession | Fa
|
||||
except ActionCancelled as e:
|
||||
return Failure(code=FailureType.ActionCancelled, message=e.message)
|
||||
# TODO handle other errors
|
||||
# TODO handle BITCOIN_ONLY
|
||||
|
||||
new_session.set_session_state(SessionState.ALLOCATED)
|
||||
channel.sessions[new_session.session_id] = new_session
|
||||
loop.schedule(new_session.handle())
|
||||
new_session_id: int = new_session.session_id
|
||||
# await get_seed() TODO
|
||||
|
||||
if __debug__:
|
||||
log.debug(
|
||||
|
Loading…
Reference in New Issue
Block a user