ignore empty lines

This commit is contained in:
Mylloon 2024-05-06 15:43:00 +02:00
parent e9a8a3c7b7
commit c7a388d894
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -85,6 +85,9 @@ def data_reader(path: str, delimiter: str = ","):
with open(path) as csv_file:
data = csv_reader(csv_file, delimiter=delimiter)
for system in data:
if len(system) == 0:
continue
name = system[0]
base = list(system[1])
axiom = system[2]