ne se vautre pas au démarrage si un fichier de log n'existe pas en cas d'erreur

This commit is contained in:
fpeters 2004-02-06 11:02:01 +00:00
parent 3026cd8380
commit 3e1df9b6ac
1 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,10 @@ def doStart():
if not logDir:
continue
fileName = os.path.join(logDir, '%s.log' % server)
fileInstance = open(fileName,'r')
try:
fileInstance = open(fileName,'r')
except IOError:
continue
print ''.join(fileInstance.readlines()[-10:])
fileInstance.close()
print ' done.'