prevent traceback when parsing the log level
This commit is contained in:
parent
67fda3ae8a
commit
47d30eb973
|
@ -30,7 +30,8 @@ def parseLogLevel(arg):
|
||||||
elif arg.isupper():
|
elif arg.isupper():
|
||||||
return getattr(logging, arg)
|
return getattr(logging, arg)
|
||||||
else:
|
else:
|
||||||
raise ValueError(_('%s is not a valid loglevel'), repr(arg))
|
print _('%s is not a valid loglevel') % repr(arg)
|
||||||
|
return 0
|
||||||
|
|
||||||
def parseLogTarget(arg):
|
def parseLogTarget(arg):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue