From 149926d9373f65490a849a36e9a530ebeb985502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ioan=20Biz=C4=83u?= Date: Mon, 27 Jan 2025 13:08:12 +0100 Subject: [PATCH] chore(core): remove unnecessary check [no changelog] --- core/src/trezor/ui/layouts/bolt/__init__.py | 3 --- core/src/trezor/ui/layouts/caesar/__init__.py | 3 --- core/src/trezor/ui/layouts/delizia/__init__.py | 3 --- 3 files changed, 9 deletions(-) diff --git a/core/src/trezor/ui/layouts/bolt/__init__.py b/core/src/trezor/ui/layouts/bolt/__init__.py index a52470391d..d543f49e17 100644 --- a/core/src/trezor/ui/layouts/bolt/__init__.py +++ b/core/src/trezor/ui/layouts/bolt/__init__.py @@ -707,9 +707,6 @@ def confirm_value( if description and value: description += ":" - if not verb and not hold: - raise ValueError("Either verb or hold=True must be set") - info_items = info_items or [] info_layout = trezorui_api.show_info_with_cancel( title=info_title if info_title else TR.words__title_information, diff --git a/core/src/trezor/ui/layouts/caesar/__init__.py b/core/src/trezor/ui/layouts/caesar/__init__.py index 78649ee02c..1d829b09a3 100644 --- a/core/src/trezor/ui/layouts/caesar/__init__.py +++ b/core/src/trezor/ui/layouts/caesar/__init__.py @@ -770,9 +770,6 @@ async def confirm_value( if description and value: description += ":" - if not verb and not hold: - raise ValueError("Either verb or hold=True must be set") - if info_items is None: return await raise_if_not_confirmed( trezorui_api.confirm_value( diff --git a/core/src/trezor/ui/layouts/delizia/__init__.py b/core/src/trezor/ui/layouts/delizia/__init__.py index ad0df13259..c876c0c930 100644 --- a/core/src/trezor/ui/layouts/delizia/__init__.py +++ b/core/src/trezor/ui/layouts/delizia/__init__.py @@ -623,9 +623,6 @@ def confirm_value( ) -> Awaitable[None]: """General confirmation dialog, used by many other confirm_* functions.""" - if not verb and not hold: - raise ValueError("Either verb or hold=True must be set") - info_items = info_items or [] info_layout = trezorui_api.show_info_with_cancel( title=info_title if info_title else TR.words__title_information,