From afce8b37c451551fb5de36a26d9dfb669cf9c920 Mon Sep 17 00:00:00 2001 From: Matthis Thorade Date: Mon, 23 Oct 2017 15:32:56 +0200 Subject: [PATCH] py 2 and 3 http://python3porting.com/noconv.html#handling-exceptions this is the first error i get when i try to start th eviewer from python 3 using the two-line from https://github.com/IfcOpenShell/IfcOpenShell/commit/1d1fb6d27a5bb1f221aed4dc290c1dc99a324e0f#commitcomment-17161165 --- src/ifcopenshell-python/ifcopenshell/geom/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/geom/app.py b/src/ifcopenshell-python/ifcopenshell/geom/app.py index f7cbd3d87c..a08d0ded73 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/app.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/app.py @@ -333,7 +333,7 @@ class application(QtGui.QApplication): if type_psets is None: continue for propset in type_psets: propsets.append(process_pset(propset)) - except Exception, e: + except Exception as e: import traceback print("failed to load properties: {}".format(e)) traceback.print_exc()