Skip to content

Commit 40fd4f3

Browse files
committed
Added some more in-code comments to clarify why that exception is caught
1 parent 24a3505 commit 40fd4f3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

smmap/mman.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ def _destroy(self):
5959
self._manager._fdict.pop(self._rlist.path_or_fd())
6060
# END remove regions list from manager
6161
except TypeError:
62+
# sometimes, during shutdown, getrefcount is None. Its possible
63+
# to re-import it, however, its probably better to just ignore
64+
# this python problem (for now).
65+
# The next step is to get rid of the error prone getrefcount alltogether.
6266
pass
67+
#END exception handling
6368
#END handle regions
6469

6570
def _copy_from(self, rhs):

0 commit comments

Comments
 (0)