mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
Fix AttributeError exception in log.py with python3.4
This commit is contained in:
parent
0f3a159a60
commit
ad3deb7c21
@ -209,7 +209,10 @@ class ValidLogLevel(registry.String):
|
||||
def set(self, s):
|
||||
s = s.upper()
|
||||
try:
|
||||
level = logging._levelNames[s]
|
||||
try:
|
||||
level = logging._levelNames[s]
|
||||
except AttributeError:
|
||||
level = logging._nameToLevel[s]
|
||||
except KeyError:
|
||||
try:
|
||||
level = int(s)
|
||||
|
Loading…
Reference in New Issue
Block a user