Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • O openpyxl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 283
    • Issues 283
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • openpyxl
  • openpyxl
  • Issues
  • #1670
Closed
Open
Issue created Apr 15, 2021 by Joseph Goldbeck@joegoldbeck

OverflowError: date value out of range

This relates to #1152 (closed), which seems to have only partially addressed the issue.

I have a large excel sheet with one date that is out of the valid range. Currently, I get the opaque error OverflowError: date value out of range, with no indication of what cell causes the problem. I see there is already code from #1152 (closed) which intends to address this. However, that checks only for ValueError, not for OverflowError.

Simply changing this line to except (ValueError, OverflowError): will fix this issue.

The new behavior will be UserWarning: Cell A34829 is marked as a date but the serial value 6688355 is outside the limits for dates. The cell will be treated as an error. which is much easier to work with :)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking