fixed linting

This commit is contained in:
Saifeddine ALOUI
2025-01-24 21:01:34 +01:00
parent 91422b0eb6
commit 1776c1afcd
2 changed files with 90 additions and 89 deletions

View File

@@ -468,13 +468,12 @@ def parse_args() -> argparse.Namespace:
help="Path to SSL private key file (required if --ssl is enabled)", help="Path to SSL private key file (required if --ssl is enabled)",
) )
parser.add_argument( parser.add_argument(
'--auto-scan-at-startup', "--auto-scan-at-startup",
action='store_true', action="store_true",
default=False, default=False,
help='Enable automatic scanning when the program starts' help="Enable automatic scanning when the program starts",
) )
args = parser.parse_args() args = parser.parse_args()
return args return args
@@ -924,7 +923,9 @@ def create_app(args):
trace_exception(e) trace_exception(e)
logging.error(f"Error indexing file {file_path}: {str(e)}") logging.error(f"Error indexing file {file_path}: {str(e)}")
logging.info(f"Indexed {len(new_files)} documents from {args.input_dir}") logging.info(
f"Indexed {len(new_files)} documents from {args.input_dir}"
)
except Exception as e: except Exception as e:
logging.error(f"Error during startup indexing: {str(e)}") logging.error(f"Error during startup indexing: {str(e)}")