Fixed an exception on exit.

This commit is contained in:
Jeremy Fincher 2004-09-29 14:50:14 +00:00
parent cc15862d65
commit bea33e53d6

View File

@ -202,7 +202,7 @@ class ValidLogLevel(registry.String):
self.setValue(level) self.setValue(level)
def __str__(self): def __str__(self):
level = logging.getLevelName(self.value) level = str(logging.getLevelName(self.value))
if level.startswith('Level'): if level.startswith('Level'):
level = level.split()[-1] level = level.split()[-1]
return level return level