[ARCH] Catch only Exception, not BaseException

This commit is contained in:
Chris Hennes
2021-02-10 14:07:34 -06:00
committed by wwmayer
parent 10b08671ef
commit 8228d64ac4
24 changed files with 79 additions and 79 deletions

View File

@@ -711,7 +711,7 @@ class ViewProviderBuildingPart:
u = q.getUserPreferred()[2]
try:
q = q.getValueAs(u)
except:
except Exception:
q = q.getValueAs(q.getUserPreferred()[2])
d = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Units").GetInt("Decimals",0)
fmt = "{0:."+ str(d) + "f}"