[yum-cvs] yum/yum logginglevels.py,1.7,1.8
James Bowes
jbowes at linux.duke.edu
Tue Dec 19 01:44:03 UTC 2006
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv7526/yum
Modified Files:
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.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- logginglevels.py 25 Oct 2006 06:08:31 -0000 1.7
+++ logginglevels.py 19 Dec 2006 01:44:01 -0000 1.8
@@ -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