From 05e5107e82d177dd812ddb9b4f30e13c4cdaab9c Mon Sep 17 00:00:00 2001 From: ctmbl Date: Sat, 31 Aug 2024 20:05:30 +0200 Subject: [PATCH] Please pylint --- src/database/db_manager.py | 2 +- tests/test_database_manager.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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