prevent traceback when parsing the log level

This commit is contained in:
Denis Fomin 2010-12-03 13:22:40 +03:00
parent 67fda3ae8a
commit 47d30eb973
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ def parseLogLevel(arg):
elif arg.isupper():
return getattr(logging, arg)
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):
"""