Fixed an exception on exit.

This commit is contained in:
Jeremy Fincher 2004-09-29 14:50:14 +00:00
parent cc15862d65
commit bea33e53d6
1 changed files with 1 additions and 1 deletions

View File

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