From c10e39197c043f83b1071b4a331444c5b0f7f663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Thu, 15 Jun 2023 07:30:58 +0100 Subject: [PATCH] Add support for secondary ships with no main ship --- ships.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ships.py b/ships.py index e196252..3ee5dbb 100644 --- a/ships.py +++ b/ships.py @@ -35,6 +35,9 @@ def shiplist(local=False): theships.extend(fileread.ship) except: pass + for ship in theships: + if ship == None: + theships.remove(ship) theships = sorted(list(dict.fromkeys(theships))) for ship in theships: shipdict = {"pairing":ship,"game":(fffandoms.index(fandom) + 1)}