From af6619b7bf7cc68623a0a6446ab3a56200da7b74 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 27 Oct 2023 11:29:09 +0200 Subject: [PATCH] safer solution --- commands/tinfoil.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/tinfoil.py b/commands/tinfoil.py index 982e10b..769f83b 100755 --- a/commands/tinfoil.py +++ b/commands/tinfoil.py @@ -118,7 +118,11 @@ for base in bases: remove("nsz/base", base) fullid = get_title_fullid(base) - shortid = fullid[0:-4] if fullid else fullid + + if not fullid: + continue + + shortid = fullid[0:-4] for dlc in dlcs: if shortid in dlc: