From 02dc2169d03359bbb44a12972c0c443b7395f0ca Mon Sep 17 00:00:00 2001 From: DazedAnon Date: Sun, 14 Jul 2024 23:29:58 -0500 Subject: [PATCH] Add error handling --- modules/csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/csv.py b/modules/csv.py index fefb8e9..14268bb 100644 --- a/modules/csv.py +++ b/modules/csv.py @@ -136,7 +136,7 @@ def parseCSV(readFile, writeFile, filename): global LOCK format = '' - while format == '': + while format not in ['1', '2', '3']: format = input('\n\nSelect the CSV Format:\n\n1. Translator++\n2. Single\n3. Multiple') match format: case '1':