mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 17:26:23 +02:00
chore: linting
This commit is contained in:
parent
eaa21c7150
commit
2832d57bda
60 changed files with 176 additions and 179 deletions
|
|
@ -277,7 +277,9 @@ async def index_google_drive_single_file(
|
|||
)
|
||||
|
||||
await session.commit()
|
||||
logger.info("Successfully committed Google Drive file indexing changes to database")
|
||||
logger.info(
|
||||
"Successfully committed Google Drive file indexing changes to database"
|
||||
)
|
||||
|
||||
if indexed > 0:
|
||||
await task_logger.log_task_success(
|
||||
|
|
@ -302,7 +304,7 @@ async def index_google_drive_single_file(
|
|||
await session.rollback()
|
||||
await task_logger.log_task_failure(
|
||||
log_entry,
|
||||
f"Database error during file indexing",
|
||||
"Database error during file indexing",
|
||||
str(db_error),
|
||||
{"error_type": "SQLAlchemyError"},
|
||||
)
|
||||
|
|
@ -312,7 +314,7 @@ async def index_google_drive_single_file(
|
|||
await session.rollback()
|
||||
await task_logger.log_task_failure(
|
||||
log_entry,
|
||||
f"Failed to index Google Drive file",
|
||||
"Failed to index Google Drive file",
|
||||
str(e),
|
||||
{"error_type": type(e).__name__},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue