Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TypeError in parser's error-wrapping logic #987

Merged
merged 2 commits into from Jan 2, 2020

Commits on Jan 2, 2020

  1. Fix TypeError in parser wrapper logic

    In attempting to pass-through the string representation of an exception
    we are wrapping, we made the erroneous assumption that `args[0]` would
    always be a string (or something that can concatenate cleanly with a
    string). This turns out not to be the case with `IllegalMonthError`,
    where it is an integer, so to avoid raising an erroneous `TypeError`, we
    first convert the wrapped exception to a string.
    
    See GH issue dateutil#981.
    eastface authored and pganssle committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    79d2e48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a332879 View commit details
    Browse the repository at this point in the history