[yum-cvs] yum/yum logginglevels.py,1.5.2.2,1.5.2.3
James Bowes
jbowes at linux.duke.edu
Tue Dec 19 01:45:07 UTC 2006
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv7580/yum
Modified Files:
Tag: yum-3_0_X
logginglevels.py
Log Message:
Replace catching Exception with IOError, which should catch all cases
Index: logginglevels.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/logginglevels.py,v
retrieving revision 1.5.2.2
retrieving revision 1.5.2.3
diff -u -r1.5.2.2 -r1.5.2.3
--- logginglevels.py 18 Oct 2006 04:18:03 -0000 1.5.2.2
+++ logginglevels.py 19 Dec 2006 01:45:05 -0000 1.5.2.3
@@ -141,6 +141,5 @@
"%b %d %H:%M:%S")
filehandler.setFormatter(formatter)
filelogger.addHandler(filehandler)
- #FIXME: XXX: A global exception catch? That seems unlikely.
- except Exception:
+ except IOError:
logging.getLogger("yum").critical('Cannot open logfile %s', logfile)
More information about the Yum-cvs-commits
mailing list