Unbreak building PyDocs from error in recent refactor

Building docs with buildinfo was failing
This commit is contained in:
Campbell Barton
2024-03-27 16:26:31 +11:00
parent 3b8818cb6e
commit 976b2d47b4

View File

@@ -12,7 +12,7 @@ BLENDER_REVISION = "${BLENDER_REVISION}"
BLENDER_REVISION_TIMESTAMP = "${BLENDER_REVISION_TIMESTAMP}"
BLENDER_VERSION_DATE = time.strftime(
"%d/%m/%Y",
time.localtime(BLENDER_REVISION_TIMESTAMP if BLENDER_REVISION_TIMESTAMP != "0" else None),
time.localtime(int(BLENDER_REVISION_TIMESTAMP) if BLENDER_REVISION_TIMESTAMP != "0" else None),
)
if BLENDER_REVISION != "Unknown":