From e727ac63d4e0f5eb33d0004f1e87f6819c0bc25b Mon Sep 17 00:00:00 2001 From: Arina Dohadailo Date: Thu, 5 Nov 2026 23:48:50 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20u8/program.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- u8/program.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/u8/program.py b/u8/program.py index 0f8f7ea..e8f7915 100644 --- a/u8/program.py +++ b/u8/program.py @@ -38,9 +38,8 @@ def load(): tree = load() -if pos < len(rows): - if rows[pos] != "": - bad_database() +if pos >= len(rows) or rows[pos] != "": + bad_database() answers = rows[pos + 1:]