From 0dabe2965721cd399048f8250f304c7efcc4e299 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Fri, 1 Feb 2013 11:45:20 +0000 Subject: [PATCH] ignore problems when importing (outdated) core module during its rebuilding. --- lib/damask/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/damask/__init__.py b/lib/damask/__init__.py index ecdd00158..a997a4193 100644 --- a/lib/damask/__init__.py +++ b/lib/damask/__init__.py @@ -43,7 +43,7 @@ try: core.mesh.volumeMismatch = core.mesh.mesh_volumeMismatch core.mesh.shapeMismatch = core.mesh.mesh_shapeMismatch -except ImportError, e: +except (ImportError,AttributeError) as e: core = None # from http://www.python.org/dev/peps/pep-0008/ if('setup_processing' not in sys.argv[0]): sys.stderr.write('\nWARNING: Core module (Fortran code) not available, '\