Browse Source

directnotify: Fix invalid syntax

rdb 2 years ago
parent
commit
b99b3dc7d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/directnotify/RotatingLog.py

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

@@ -59,7 +59,7 @@ class RotatingLog:
         for i in range(26):
         for i in range(26):
             limit = self.sizeLimit
             limit = self.sizeLimit
             path = "%s_%s_%s.log" % (self.path, dateString, chr(i+97))
             path = "%s_%s_%s.log" % (self.path, dateString, chr(i+97))
-            if limit is None not os.path.exists(path) or os.stat(path)[6] < limit:
+            if limit is None or not os.path.exists(path) or os.stat(path)[6] < limit:
                 return path
                 return path
         # Hmm, 26 files are full?  throw the rest in z:
         # Hmm, 26 files are full?  throw the rest in z:
         # Maybe we should clear the self.sizeLimit here... maybe.
         # Maybe we should clear the self.sizeLimit here... maybe.