From b99b3dc7d458e0d6f206b4f6bb4025b88968bd1a Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 8 Oct 2023 17:22:37 +0200 Subject: [PATCH] directnotify: Fix invalid syntax --- direct/src/directnotify/RotatingLog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/directnotify/RotatingLog.py b/direct/src/directnotify/RotatingLog.py index e47b60cee6..1502ad8994 100755 --- a/direct/src/directnotify/RotatingLog.py +++ b/direct/src/directnotify/RotatingLog.py @@ -59,7 +59,7 @@ class RotatingLog: for i in range(26): limit = self.sizeLimit 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 # Hmm, 26 files are full? throw the rest in z: # Maybe we should clear the self.sizeLimit here... maybe.