Running the Python command 'Fasteners_BOM' failed: Traceback (most recent call last):
File "/home/john/.local/share/FreeCAD/Mod/fasteners/./FastenerBase.py", line 897, in Activated
method(obj, cnt)
File "/home/john/.local/share/FreeCAD/Mod/fasteners/./FastenerBase.py", line 915, in AddScrew
" Screw ") + FSScrewStr(obj)
File "/home/john/.local/share/FreeCAD/Mod/fasteners/./FastenerBase.py", line 184, in FSScrewStr
if isinstance(dia, FreeCAD.Units.Quantity):
local variable 'dia' referenced before assignment
Fixes this error, reported on forum https://forum.freecad.org/viewtopic.php?t=87169: