--- Logging error in Loguru Handler #15 ---
Record was: {'elapsed': datetime.timedelta(seconds=257, microseconds=729688), 'exception': (type=None, value=False, traceback=False), 'extra': {}, 'file': (name='1334436161.py', path='/tmp/ipykernel_66122/1334436161.py'), 'function': '<module>', 'level': (name='ERROR', no=40, icon='❌'), 'line': 4, 'message': 'An error occurred!', 'module': '1334436161', 'name': '__main__', 'process': (id=66122, name='MainProcess'), 'thread': (id=130782869056384, name='MainThread'), 'time': datetime(2025, 3, 11, 17, 33, 55, 292986, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600), 'CET'))}
Traceback (most recent call last):
File "/tmp/ipykernel_66122/1334436161.py", line 2, in <module>
1 / 0
~~^~~
ZeroDivisionError: division by zero
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_handler.py", line 147, in emit
formatter_record["exception"] = "".join(lines)
^^^^^^^^^^^^^^
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_better_exceptions.py", line 573, in format_exception
yield from self._format_exception(value, tb, is_first=True, from_decorator=from_decorator)
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_better_exceptions.py", line 454, in _format_exception
frames, final_source = self._extract_frames(
^^^^^^^^^^^^^^^^^^^^^
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_better_exceptions.py", line 216, in _extract_frames
if is_valid(tb.tb_frame):
^^^^^^^^^^^
AttributeError: 'bool' object has no attribute 'tb_frame'
--- End of logging error ---
--- Logging error in Loguru Handler #16 ---
Record was: {'elapsed': datetime.timedelta(seconds=257, microseconds=729688), 'exception': (type=None, value=False, traceback=False), 'extra': {}, 'file': (name='1334436161.py', path='/tmp/ipykernel_66122/1334436161.py'), 'function': '<module>', 'level': (name='ERROR', no=40, icon='❌'), 'line': 4, 'message': 'An error occurred!', 'module': '1334436161', 'name': '__main__', 'process': (id=66122, name='MainProcess'), 'thread': (id=130782869056384, name='MainThread'), 'time': datetime(2025, 3, 11, 17, 33, 55, 292986, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600), 'CET'))}
Traceback (most recent call last):
File "/tmp/ipykernel_66122/1334436161.py", line 2, in <module>
1 / 0
~~^~~
ZeroDivisionError: division by zero
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_handler.py", line 147, in emit
formatter_record["exception"] = "".join(lines)
^^^^^^^^^^^^^^
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_better_exceptions.py", line 573, in format_exception
yield from self._format_exception(value, tb, is_first=True, from_decorator=from_decorator)
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_better_exceptions.py", line 454, in _format_exception
frames, final_source = self._extract_frames(
^^^^^^^^^^^^^^^^^^^^^
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_better_exceptions.py", line 216, in _extract_frames
if is_valid(tb.tb_frame):
^^^^^^^^^^^
AttributeError: 'bool' object has no attribute 'tb_frame'
--- End of logging error ---
--- Logging error in Loguru Handler #17 ---
Record was: {'elapsed': datetime.timedelta(seconds=257, microseconds=729688), 'exception': (type=None, value=False, traceback=False), 'extra': {}, 'file': (name='1334436161.py', path='/tmp/ipykernel_66122/1334436161.py'), 'function': '<module>', 'level': (name='ERROR', no=40, icon='❌'), 'line': 4, 'message': 'An error occurred!', 'module': '1334436161', 'name': '__main__', 'process': (id=66122, name='MainProcess'), 'thread': (id=130782869056384, name='MainThread'), 'time': datetime(2025, 3, 11, 17, 33, 55, 292986, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600), 'CET'))}
Traceback (most recent call last):
File "/tmp/ipykernel_66122/1334436161.py", line 2, in <module>
1 / 0
~~^~~
ZeroDivisionError: division by zero
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_handler.py", line 147, in emit
formatter_record["exception"] = "".join(lines)
^^^^^^^^^^^^^^
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_better_exceptions.py", line 573, in format_exception
yield from self._format_exception(value, tb, is_first=True, from_decorator=from_decorator)
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_better_exceptions.py", line 454, in _format_exception
frames, final_source = self._extract_frames(
^^^^^^^^^^^^^^^^^^^^^
File "/home/aemonge/.virtualenvs/summary-dspy-addl/lib/python3.12/site-packages/loguru/_better_exceptions.py", line 216, in _extract_frames
if is_valid(tb.tb_frame):
^^^^^^^^^^^
AttributeError: 'bool' object has no attribute 'tb_frame'
--- End of logging error ---