Skip to content
Snippets Groups Projects
Commit 4efa2867 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

try catch added in py_fuga.py cleanup

parent 83ca7fdb
No related branches found
No related tags found
1 merge request!94Handle disabled mpi
...@@ -56,7 +56,10 @@ class PyFuga(object): ...@@ -56,7 +56,10 @@ class PyFuga(object):
def cleanup(self): def cleanup(self):
if hasattr(self, 'lib'): if hasattr(self, 'lib'):
self.lib.Exit() try:
self.lib.Exit() # raises exception
except:
pass
del self.lib del self.lib
if os.path.isfile(self.stdout_filename): if os.path.isfile(self.stdout_filename):
os.remove(self.stdout_filename) os.remove(self.stdout_filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment