yolo_mapping.py has two problems:
- Contains a debug
print(os.getcwd()) statement that should not be in production code
db_create_YOLO_classes_table has no exception handling — if SQLite fails, the error is silent
Proposed fix
- Remove the debug
print and unused import os
- Add
sqlite3.Error exception handling with proper logging
- Add success log message
I'd like to fix this if maintainers agree.
yolo_mapping.pyhas two problems:print(os.getcwd())statement that should not be in production codedb_create_YOLO_classes_tablehas no exception handling — if SQLite fails, the error is silentProposed fix
printand unusedimport ossqlite3.Errorexception handling with proper loggingI'd like to fix this if maintainers agree.