Skip to content
This repository was archived by the owner on Aug 7, 2026. It is now read-only.
This repository was archived by the owner on Aug 7, 2026. It is now read-only.

[Bug] logger.catch's reraise field dosn't work #62

Description

@aiwonderland

Describe the Bug

logger.catch's reraise field dosn't work!

Expected Behavior

from errortools.logging import logger
with logger.catch(message="Failed to parse numeric input"):
    int("invalid-number-test")

Actual Behavior

2026-06-11 10:05:16.822 | ✘ ERROR    | base:__exit__:392 - Failed to parse numeric input
Traceback (most recent call last):
  File "C:\Users\shuxiang\Desktop\errortools\errortools\logging.py", line 71, in main
    int("invalid-number-test")
    ~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'invalid-number-test'

Environment

  • OS: [Windows 11]
  • Python version: [3.14]
  • Package version: [3.40]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions