diff --git a/src/database/db_manager.py b/src/database/db_manager.py index 9df5511..8d8c931 100644 --- a/src/database/db_manager.py +++ b/src/database/db_manager.py @@ -37,7 +37,7 @@ def __init__(self, api_manager): self.DB_FOLDER = getenv("DB_FOLDER") if self.DB_FOLDER is None or not path.isdir(self.DB_FOLDER): self.logger.critical("DB_FOLDER: '%s', is not a directory", self.DB_FOLDER) - raise Exception(f"DB_FOLDER: '{self.DB_FOLDER}', is not a directory") + raise OSError(f"DB_FOLDER: '{self.DB_FOLDER}', is not a directory") # Init Connection object allowing interaction with the database db_file_path = path.join(self.DB_FOLDER, DB_FILE_NAME) diff --git a/tests/test_database_manager.py b/tests/test_database_manager.py index 293c2e2..3695666 100644 --- a/tests/test_database_manager.py +++ b/tests/test_database_manager.py @@ -2,7 +2,6 @@ from data.rootme_api_example_data import auteurs_with_score_zero_example_data -from database import DatabaseManager from classes import User