Commit f711be7e authored by Berk Onat's avatar Berk Onat

Removing ModuleNotFoundError exception for ASE

parent 4ee42ae6
......@@ -3752,7 +3752,7 @@ class MDDataAccess(object):
try:
handler = ase_io.iread(filename, index=":", format=fileformat)
except (AttributeError, IOError, OSError,
ValueError, ImportError, ModuleNotFoundError):
ValueError, ImportError):
return handler
if handler is not None:
......@@ -3760,7 +3760,7 @@ class MDDataAccess(object):
for value in handler:
yield value.get_positions()
except (AttributeError, IOError, OSError,
ValueError, ImportError, ModuleNotFoundError):
ValueError, ImportError):
return handler
else:
return handler
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment