Browse Source

Remove exception indexing

Mike Naberezny 11 năm trước cách đây
mục cha
commit
0515b3a9ff
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      supervisor/loggers.py

+ 1 - 1
supervisor/loggers.py

@@ -198,7 +198,7 @@ class RotatingFileHandler(FileHandler):
         except OSError, why:
             # catch exceptional condition (source deleted)
             # E.g. cleanup script removes active log.
-            if why[0] != errno.ENOENT:
+            if why.args[0] != errno.ENOENT:
                 raise
 
     def doRollover(self):