fix: improve SQLite error handling in metadata.py
metadata.py has two problems:
Uses broad except Exception instead of sqlite3.Error Uses print() instead of logging for error reporting db_create_metadata_table has no exception handling at all
I'd like to fix this. Assigning myself.
👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)
Hi @rohan-pandeyy ! I would like to work on this issue.
My approach will be to:
- Review
metadata.pyfor any broadExceptionblocks or rawprint()statements used during database operations. - Replace them with specific
sqlite3.Errorexception handling. - Integrate the project's standard logger (
logger.error()) instead of raw prints to ensure error reporting consistency with the rest of the backend.
Could you please assign this issue to me? Thanks!
@Dotify71 Are you still working on this issue?
Hi @VanshajPoonia I have the fix ready just waiting for a maintainer to see my approach and assign it to me if they like so