mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
fix(python): do not implicitly import PIL by trezorctl
This commit is contained in:
parent
7d40f98153
commit
455884932e
1
python/.changelog.d/noissue.fixed
Normal file
1
python/.changelog.d/noissue.fixed
Normal file
@ -0,0 +1 @@
|
||||
Fixed dependency error when running trezorctl without PIL.
|
@ -38,7 +38,6 @@ from typing import (
|
||||
)
|
||||
|
||||
from mnemonic import Mnemonic
|
||||
from PIL import Image
|
||||
|
||||
from . import mapping, messages, protobuf
|
||||
from .client import TrezorClient
|
||||
@ -255,6 +254,8 @@ class DebugLink:
|
||||
self.save_screenshot_for_t1()
|
||||
|
||||
def save_screenshot_for_t1(self) -> None:
|
||||
from PIL import Image
|
||||
|
||||
layout = self.state().layout
|
||||
assert layout is not None
|
||||
assert len(layout) == 128 * 64 // 8
|
||||
|
Loading…
Reference in New Issue
Block a user