Skip to content

Commit

Permalink
Add @kwmsmith's fix for atexit cleanup errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrant committed Jun 3, 2014
1 parent 3557a7f commit ace20cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion distarray/dist/distarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ def get_dim_datas_and_dtype(arr):
return da

def __del__(self):
self.context.delete_key(self.key, self.targets)
try:
self.context.delete_key(self.key, self.targets)
except Exception:
pass

def __repr__(self):
s = '<DistArray(shape=%r, targets=%r)>' % \
Expand Down

0 comments on commit ace20cc

Please sign in to comment.