fix: replace broad Exception and print() with proper error handling in faces.py
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start in faces.py at db_update_face_cluster_ids_batch and inspect how its database errors are handled. Replace the broad exception and print-based message as proposed, adding the module logger; done means sqlite3.Error is handled and the failure is sent through logger.error().
Written by the indexing model from the issue text.
Description
db_update_face_cluster_ids_batch in faces.py has two problems:
- Uses broad
except Exceptioninstead ofsqlite3.Error - Uses
print("Error updating face cluster IDs in batch.")instead of proper logging
Proposed fix
- Replace
except Exceptionwithexcept sqlite3.Error - Replace
print()withlogger.error() - Add
import loggingandlogger = logging.getLogger(__name__)
I'd like to fix this if maintainers agree.
- Dominant language
- Python
- Stars
- 289
- Forks
- 685
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/PictoPy
-
bug possible-duplicate
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
AOSSIE-Org/PictoPy#1553 · 4 comments ·
-
BUG: Compiled .pyc committed under .github/scripts, root .gitignore does not ignore __pycache__ Openbug enhancement possible-duplicate
Difficulty 1/5 Under an hour Newbie friendliness 92/100
AOSSIE-Org/PictoPy#1544 · 5 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/PictoPy#1541 · 6 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
AOSSIE-Org/PictoPy#1535 · 1 comment ·
-
bug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AOSSIE-Org/PictoPy#1533 · 2 comments ·
All issues in AOSSIE-Org/PictoPy
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100