Commits

pjenvey  committed 38748af

[svn] avoid triggering an exception during garbage collection

  • Participants
  • Parent commits 1dc32fe

Comments (0)

Files changed (1)

File beaker/synchronization.py

             self.opened = False
 
     def __del__(self):
+        if not os:
+            # os module has already been GCed
+            return
         if os.access(self.filename, os.F_OK):
             try:
                 os.remove(self.filename)