loguru/tests/exceptions/source/diagnose/source_strings.py

16 lines
260 B
Python

# fmt: off
import sys
from loguru import logger
logger.remove()
logger.add(sys.stderr, format="", colorize=True, backtrace=False, diagnose=True)
a = b = 0
try:
a + b"prefix" + 'single' + """triple""" + 1 + b
except TypeError:
logger.exception("")