Skip to content

Commit

Permalink
Please pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Aug 31, 2024
1 parent de5fc08 commit 05e5107
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/database/db_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion tests/test_database_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 05e5107

Please sign in to comment.