Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added some more in-code comments to clarify why that exception is caught

  • Loading branch information...
commit 40fd4f31ab594dcfe049032c62ec61d2f0c3e492 1 parent 24a3505
@Byron Byron authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 smmap/mman.py
View
5 smmap/mman.py
@@ -59,7 +59,12 @@ def _destroy(self):
self._manager._fdict.pop(self._rlist.path_or_fd())
# END remove regions list from manager
except TypeError:
+ # sometimes, during shutdown, getrefcount is None. Its possible
+ # to re-import it, however, its probably better to just ignore
+ # this python problem (for now).
+ # The next step is to get rid of the error prone getrefcount alltogether.
pass
+ #END exception handling
#END handle regions
def _copy_from(self, rhs):
Please sign in to comment.
Something went wrong with that request. Please try again.