fix(backend): ensure version screeen runs without django present (#11887) (#11891)

(cherry picked from commit 556de563e2)

Co-authored-by: Matthias Mair <code@mjmair.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot] 2026-05-08 08:49:35 +10:00 committed by GitHub
parent 457e8b4325
commit e60092e1f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,6 @@ import sys
from datetime import datetime as dt
from datetime import timedelta as td
from django.conf import settings
from .api_version import INVENTREE_API_TEXT, INVENTREE_API_VERSION
# InvenTree software version
@ -39,6 +37,8 @@ try:
output = logger.warning
try:
from django.conf import settings
if settings.DOCKER:
output = logger.info
except Exception: