Skip to content

Commit 02a4863

Browse files
committed
Constant: fix FCDVERSION computing
1 parent a21a1cc commit 02a4863

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Render/constants.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,18 @@
5656

5757
# FreeCAD version
5858
APPVERSION = App.Version()
59-
if APPVERSION[2]:
59+
try:
60+
subminor = int(APPVERSION[2])
61+
except ValueError:
6062
FCDVERSION = (
6163
int(APPVERSION[0]),
6264
int(APPVERSION[1]),
63-
int(APPVERSION[2]),
6465
)
6566
else:
6667
FCDVERSION = (
6768
int(APPVERSION[0]),
6869
int(APPVERSION[1]),
70+
subminor,
6971
)
7072

7173

0 commit comments

Comments
 (0)