File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11# Roundup Issue Tracker configuration support
22#
3- # $Id: configuration.py,v 1.2 2004-07-25 12:44:16 a1s Exp $
3+ # $Id: configuration.py,v 1.3 2004-07-25 13: 12:59 a1s Exp $
44#
55__docformat__ = "restructuredtext"
66
99import time
1010import ConfigParser
1111
12- from roundup import instance , rlog
12+ from roundup import rlog
1313# XXX i don't think this module needs string translation, does it?
1414
1515### Exceptions
@@ -543,9 +543,10 @@ def init_logging(self):
543543 try :
544544 import logging
545545 _logging = logging
546- except ImportError , msg :
547- raise instance .TrackerError , \
548- 'Python logging module unavailable: %s' % msg
546+ except ImportError , _err :
547+ _option = self ._get_option ("LOGGING_CONFIG" )
548+ raise OptionValueError (_option , _file ,
549+ "Python logging module is not available: %s" % _err )
549550 _logging .fileConfig (_file )
550551 else :
551552 _logging = rlog .BasicLogging ()
You can’t perform that action at this time.
0 commit comments