From 77c066d0a842fab47e8accde68e8e3ec449fe245 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 10 May 2012 09:38:55 +0000 Subject: [PATCH] corrected error handling to work with older python versions --- lib/damask/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/damask/__init__.py b/lib/damask/__init__.py index f541293b3..51eb29cfe 100644 --- a/lib/damask/__init__.py +++ b/lib/damask/__init__.py @@ -11,5 +11,5 @@ from .solver import Solver # one class with subclasses from .test import Test try: from . import core -except Exception as e: - sys.stderr.write('%s \n Core module (Fortran code) not available, try to run setup_processing.py\n'%e) +except Exception, e: + sys.stderr.write('\nWARNING: Core module (Fortran code) not available, try to run setup_processing.py\nError Message when importing core.so: %s\n\n'%e)