bullseye->bookworm: explicitly import _strptime at the beginning to try to prevent "No module named '_strptime'" during migration

This commit is contained in:
Alexandre Aubin 2024-07-27 15:06:48 +02:00
parent c861ef2ae6
commit 2d3dddc51a

View file

@ -3,6 +3,9 @@ import os
import subprocess import subprocess
from time import sleep from time import sleep
# Explicitly import _strptime to prevent an issue that may arise later because of python3.9 being replaced by 3.11 in the middle of the upgrade etc
import _strptime # noqa: F401
from moulinette import Moulinette, m18n from moulinette import Moulinette, m18n
from moulinette.utils.process import call_async_output from moulinette.utils.process import call_async_output
from yunohost.utils.error import YunohostError from yunohost.utils.error import YunohostError