corrected error handling to work with older python versions

This commit is contained in:
Martin Diehl 2012-05-10 09:38:55 +00:00
parent ce83026965
commit 77c066d0a8
1 changed files with 2 additions and 2 deletions

View File

@ -11,5 +11,5 @@ from .solver import Solver # one class with subclasses
from .test import Test from .test import Test
try: try:
from . import core from . import core
except Exception as e: except Exception, e:
sys.stderr.write('%s \n Core module (Fortran code) not available, try to run setup_processing.py\n'%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)