Skip to content

fix: correct casing of urbot import (URbot -> urbot)#59

Merged
mortifia merged 1 commit into
masterfrom
fix/urbot-import-casing
Jul 12, 2026
Merged

fix: correct casing of urbot import (URbot -> urbot)#59
mortifia merged 1 commit into
masterfrom
fix/urbot-import-casing

Conversation

@mortifia

Copy link
Copy Markdown
Contributor

Closes #58

Corrige la casse de l'import dans src/cog_planning/cog.py : Bot_Base.src.bot.URbotBot_Base.src.bot.urbot (le fichier réel est en minuscules).

Fait partie de la dockerisation d'URbot (Bot_Base + Bot_Planning_python + Bot_Presentation), où ce bug provoque un crash fatal au démarrage sous Linux.

Le module réel est en minuscules (src/bot/urbot.py). L'import capitalisé
ne fonctionnait que sur systèmes de fichiers insensibles à la casse
(macOS/Windows) et provoquait un ModuleNotFoundError fatal au démarrage
sous Linux/Docker, car il n'est pas rattrapé par le except ValueError
du chargeur de cogs dans Bot_Base/src/bot/urbot.py.
@mortifia mortifia merged commit 582e484 into master Jul 12, 2026
4 checks passed
@mortifia mortifia deleted the fix/urbot-import-casing branch July 12, 2026 02:54
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.

Import cassé sous Linux : Bot_Base.src.bot.URbot (casse incorrecte)

1 participant