• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-cli / 11784081384

11 Nov 2024 06:22PM CUT coverage: 88.612%. Remained the same
11784081384

push

github

Uxio0
Bump typer from 0.12.5 to 0.13.0

Bumps [typer](https://github.com/fastapi/typer) from 0.12.5 to 0.13.0.
- [Release notes](https://github.com/fastapi/typer/releases)
- [Changelog](https://github.com/fastapi/typer/blob/master/docs/release-notes.md)
- [Commits](https://github.com/fastapi/typer/compare/0.12.5...0.13.0)

---
updated-dependencies:
- dependency-name: typer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

221 of 262 branches covered (84.35%)

Branch coverage included in aggregate %.

2868 of 3224 relevant lines covered (88.96%)

2.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.96
/src/safe_cli/operators/hw_wallets/trezor_exceptions.py
1
import functools
3✔
2

3
from trezorlib.exceptions import (
3✔
4
    Cancelled,
5
    OutdatedFirmwareError,
6
    PinException,
7
    TrezorFailure,
8
)
9
from trezorlib.transport import TransportException
3✔
10

11
from ..exceptions import HardwareWalletException
3✔
12
from .exceptions import InvalidDerivationPath
3✔
13

14

15
def raise_trezor_exception_as_hw_wallet_exception(function):
3✔
16
    @functools.wraps(function)
3✔
17
    def wrapper(*args, **kwargs):
3✔
18
        try:
3✔
19
            return function(*args, **kwargs)
3✔
20
        except TrezorFailure as e:
3✔
21
            raise HardwareWalletException(e.message)
×
22
        except OutdatedFirmwareError:
3✔
23
            raise HardwareWalletException("Trezor firmware version is not supported")
3✔
24
        except PinException:
3✔
25
            raise HardwareWalletException("Wrong PIN")
3✔
26
        except Cancelled:
3✔
27
            raise HardwareWalletException("Trezor operation was cancelled")
3✔
28
        except TransportException:
3✔
29
            raise HardwareWalletException("Trezor device is not connected")
3✔
30
        except InvalidDerivationPath as e:
×
31
            raise HardwareWalletException(e.message)
×
32

33
    return wrapper
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc