From 08b5d983ea6f5d0a07cac591fedec23437606eb5 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sat, 19 Mar 2022 22:22:23 +0100 Subject: [PATCH] Fix typos --- advlabdb/database_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/advlabdb/database_import.py b/advlabdb/database_import.py index d7557ee..72a8eee 100644 --- a/advlabdb/database_import.py +++ b/advlabdb/database_import.py @@ -24,7 +24,7 @@ from advlabdb.models import ( def importFromFile(filePath): if filePath[-4:] != ".txt": raise DataBaseImportException( - "The import file has to be a text file with txt extention (.txt at the end of the filename)!" + "The import file has to be a text file with txt extension (.txt at the end of the filename)!" ) semesters = {} @@ -78,7 +78,7 @@ def importFromFile(filePath): elif tableName == "Appointment": activeDict = appointments else: - raise DataBaseImportException(f"{tableName} is not a valide table name!") + raise DataBaseImportException(f"{tableName} is not a valid table name!") readHeader = True continue