mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-26 20:14:20 +01:00
Fixed an exception on exit.
This commit is contained in:
parent
cc15862d65
commit
bea33e53d6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user