1
0
Fork 0

log: fix potential import issue

This commit is contained in:
Kim, Jimin 2022-11-14 14:50:38 +09:00
parent efa3f7a3e1
commit 75b0114b70

View file

@ -2,6 +2,8 @@
Everything related to logging Everything related to logging
""" """
from sys import stderr
# https://stackoverflow.com/a/33206814/12979111 # https://stackoverflow.com/a/33206814/12979111
@ -26,4 +28,4 @@ def warn(msg: str):
def error(msg: str): def error(msg: str):
print(f" {RED}{BOLD} ERROR | {msg}{RESET}", file=sys.stderr) print(f" {RED}{BOLD} ERROR | {msg}{RESET}", file=stderr)