From c7a160929f432af951c61f6bf2d73f0e867e3851 Mon Sep 17 00:00:00 2001 From: "Malte S. Stretz" Date: Tue, 24 Sep 2024 21:17:06 +0200 Subject: [PATCH] Fix check for too old firmware. Fixes #273. --- nitrokeyapp/device_data.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nitrokeyapp/device_data.py b/nitrokeyapp/device_data.py index 7c65f0a9..a2089738 100644 --- a/nitrokeyapp/device_data.py +++ b/nitrokeyapp/device_data.py @@ -39,10 +39,10 @@ def is_bootloader(self) -> bool: @property def is_too_old(self) -> bool: try: - self.name - self.version - self.status - self.status.variant + assert self.name + assert self.version + assert self.status + assert self.status.variant return False except Exception: