Skip to content

Commit

Permalink
Add python details on Import error (NanoComp#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored Mar 5, 2020
1 parent 94ad86b commit 275f0b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/meep.i
Original file line number Diff line number Diff line change
Expand Up @@ -1571,8 +1571,8 @@ PyObject *_get_array_slice_dimensions(meep::fields *f, const meep::volume &where
if with_mpi():
try:
from mpi4py import MPI
except ImportError:
print('\n**\n** failed to load python MPI module (mpi4py)\n**\n')
except ImportError as e:
print('\n**\n** failed to load python MPI module (mpi4py)\n**', e, '\n**\n')
pass
else:
# this variable reference is needed for lazy initialization of MPI
Expand Down

0 comments on commit 275f0b0

Please sign in to comment.