PictoPy
PictoPy copied to clipboard
fix: improve SQLite error handling and logging in face_clusters.py
face_clusters.py has multiple problems:
db_delete_all_clustersuses broadexcept Exceptionandprint()instead of loggingdb_insert_clusters_batchcatches no exceptions at all- 5 other functions have no exception handling
Proposed fix
- Replace
except Exceptionwithsqlite3.Erroracross all functions - Replace
print()withlogger.error() - Add
sqlite3.Errorhandling to unprotected functions - Add
import loggingandlogger = logging.getLogger(__name__)
I'd like to fix this.
š 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 :)
Hello š I am interested in working on this issue. I have basic knowledge of Python and Iām eager to learn and contribute. I will try to provide a clean and well-documented solution. Please assign this issue to me if possible. Thank you š
@rohan-pandeyy Can I please work on this issue?