(Fixed) Error Inside Errorhandling

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
UR_
Posts: 1154
Joined: Tue Jan 03, 2017 8:42 pm

(Fixed) Error Inside Errorhandling

Post by UR_ » Sat Sep 28, 2019 12:16 pm

workflow to reproduce:
- open cantilever3D example from FreeCAD's start page
- delete "Result mesh"
- delete result object "CalculiX_static_results"
- :boom:


error message:
Traceback (most recent call last):
File "C:\Users\aio\Miniconda3\envs\freecad-dev\Library\Mod\Fem\femguiobjects\_ViewProviderFemResultMechanical.py", line 115, in onDelete
FreeCAD.Console.PrintError("Error in onDelete: " + err.message)
<class 'AttributeError'>: 'AttributeError' object has no attribute 'message'

version:
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18336 (Git)
Build type: Release
Branch: master
Hash: 1a2370cd919db2a01e4c7cd8f6d83a6df8bf9cf2
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)



please change line 115 in \Mod\Fem\femguiobjects\_ViewProviderFemResultMechanical.py

from:

Code: Select all

FreeCAD.Console.PrintError("Error in onDelete: " + err.message)
to:

Code: Select all

FreeCAD.Console.PrintError("Error in onDelete: {0} \n".format(err))
Last edited by UR_ on Sat Sep 28, 2019 6:34 pm, edited 1 time in total.
wmayer
Site Admin
Posts: 15297
Joined: Thu Feb 19, 2009 10:32 am

Re: Error Inside Errorhandling

Post by wmayer » Sat Sep 28, 2019 3:07 pm

User avatar
bernd
Posts: 9037
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: (Fixed) Error Inside Errorhandling

Post by bernd » Tue Jan 07, 2020 3:28 pm

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests