mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-05 09:42:33 +01:00
Merge pull request #579 from skgsergio/fix_log_python3.4
Fix AttributeError exception in log.py with python3.4
This commit is contained in:
commit
33262e125f
@ -209,7 +209,10 @@ class ValidLogLevel(registry.String):
|
|||||||
def set(self, s):
|
def set(self, s):
|
||||||
s = s.upper()
|
s = s.upper()
|
||||||
try:
|
try:
|
||||||
level = logging._levelNames[s]
|
try:
|
||||||
|
level = logging._levelNames[s]
|
||||||
|
except AttributeError:
|
||||||
|
level = logging._nameToLevel[s]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
try:
|
try:
|
||||||
level = int(s)
|
level = int(s)
|
||||||
|
Loading…
Reference in New Issue
Block a user