From 23d55502d3268b6150643ca3f2a3222441c6bd17 Mon Sep 17 00:00:00 2001 From: Mikhail Sandakov Date: Thu, 26 Sep 2024 11:01:29 +0300 Subject: [PATCH] Fix grub.py to make flake8 happy --- pleskdistup/actions/grub.py | 1 + pleskdistup/main.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/pleskdistup/actions/grub.py b/pleskdistup/actions/grub.py index 3383022..25cf4c1 100644 --- a/pleskdistup/actions/grub.py +++ b/pleskdistup/actions/grub.py @@ -5,6 +5,7 @@ DEBCONF_CMD = "/usr/bin/debconf-show" + class AssertGrubInstallDeviceExists(action.CheckAction): def __init__(self) -> None: self.name = "check GRUB installation device exists" diff --git a/pleskdistup/main.py b/pleskdistup/main.py index 621c08f..58999de 100644 --- a/pleskdistup/main.py +++ b/pleskdistup/main.py @@ -317,7 +317,6 @@ def try_lock(lock_file: PathType) -> typing.Generator[bool, None, None]: except Exception as ex: log.warn(f"Failed to remove lockfile {lock_file!r}: {ex}") - def exit_signal_handler(signum, frame): # exit will trigger blocks finalization, so lockfile will be removed log.info(f"Received signal {signum}, going to exit...")