Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0cb3ce5

Browse files
committed
Bug fix (maybe it will have repercusions in future as this was a silent bug)
1 parent b7d4afc commit 0cb3ce5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def setColor(message, bold=False):
758758
if bold:
759759
retVal = colored(message, color=None, on_color=None, attrs=("bold",))
760760
elif level:
761-
_ = LOGGER_HANDLER.level_map.get(logging.getLevelName(level))
761+
_ = LOGGER_HANDLER.level_map.get(level)
762762
if _:
763763
background, foreground, bold = _
764764
retVal = colored(message, color=foreground, on_color="on_%s" % background if background else None, attrs=("bold",) if bold else None)

0 commit comments

Comments
 (0)