Kaydet (Commit) dccd4321 authored tarafından Vinay Sajip's avatar Vinay Sajip

Fixed bug in handling of args in LogRecord.__init__.

üst c19ccc9f
......@@ -204,7 +204,7 @@ class LogRecord:
# 'Value is %d' instead of 'Value is 0'.
# For the use case of passing a dictionary, this should not be a
# problem.
if args and (len(args) == 1) and args[0]:
if args and (len(args) == 1) and args[0] and (type(args[0]) == types.DictType):
args = args[0]
self.args = args
self.levelname = getLevelName(level)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment