From 5ee96e2c394425ae5cfdfff8f907eb631d3c53f0 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Mon, 13 May 2024 21:07:15 +0500 Subject: [PATCH] Move exceptions to exceptions.py --- lon_deployer/exceptions.py | 10 ++++++++++ lon_deployer/main.py | 3 +-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 lon_deployer/exceptions.py diff --git a/lon_deployer/exceptions.py b/lon_deployer/exceptions.py new file mode 100644 index 0000000..a908eb0 --- /dev/null +++ b/lon_deployer/exceptions.py @@ -0,0 +1,10 @@ +class FastbootException(Exception): + pass + + +class DeviceNotFound(Exception): + pass + + +class RepartitonError(Exception): + pass diff --git a/lon_deployer/main.py b/lon_deployer/main.py index ecf9066..8b508f8 100644 --- a/lon_deployer/main.py +++ b/lon_deployer/main.py @@ -13,11 +13,10 @@ from time import sleep import adbutils import adbutils.shell -from rich.console import Console from rich.prompt import Prompt from rich_argparse import RichHelpFormatter -from . import Files +from . import exceptions from . import fastboot from . import files from ._version import VERSION