Sfoglia il codice sorgente

Remove exception indexing

Mike Naberezny 11 anni fa
parent
commit
0515b3a9ff
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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):