Skip to content

Fix exceptions : Renommer "exceptions.py" en "blog_exceptions.py" pour éviter le conflit avec le module stdlib - #51

Merged
raynaldlao merged 1 commit into
masterfrom
fix-exceptions
Jul 24, 2026
Merged

Fix exceptions : Renommer "exceptions.py" en "blog_exceptions.py" pour éviter le conflit avec le module stdlib#51
raynaldlao merged 1 commit into
masterfrom
fix-exceptions

Conversation

@raynaldlao

Copy link
Copy Markdown
Owner

Contexte

exceptions.py à la racine provoquait un faux positif Pylance (reportUndefinedVariable) sur les builtins Exception et ValueError. Le nom du fichier collisionne avec l'ancien module stdlib exceptions de Python 2, ce qui perturbe l'analyse statique.

Changements

  • Renommage exceptions.pyblog_exceptions.py
  • Mise à jour de 33 occurrences from exceptions importfrom blog_exceptions import
  • Mise à jour des commentaires référençant exceptions.py

… imports updated, and every comment referencing the old name corrected. This avoids Pylance collisions with the stdlib `exceptions` module and removes false undefined‑variable reports for builtin Exception/ValueError
@raynaldlao
raynaldlao requested a review from hlargitte July 24, 2026 18:34
@raynaldlao raynaldlao self-assigned this Jul 24, 2026

@hlargitte hlargitte left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@raynaldlao
raynaldlao merged commit b5c6a8a into master Jul 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants