Browse Source

minor touchup to self.closed

Dave Schuyler 21 years ago
parent
commit
2522d77d95
1 changed files with 3 additions and 1 deletions
  1. 3 1
      direct/src/directnotify/RotatingLog.py

+ 3 - 1
direct/src/directnotify/RotatingLog.py

@@ -35,8 +35,10 @@ class RotatingLog:
         if hasattr(self, "file"):
         if hasattr(self, "file"):
             self.file.flush()
             self.file.flush()
             self.file.close()
             self.file.close()
+            self.closed = self.file.closed
             del self.file
             del self.file
-        self.closed = self.file.closed
+        else:
+            self.closed = 1
 
 
     def shouldRotate(self):
     def shouldRotate(self):
         """
         """