Skip to content

Conversation

@hamasfaa
Copy link

@hamasfaa hamasfaa commented Dec 8, 2025

Fix year out of range error in netusage artifact

Fixed ValueError: year 0 is out of range that occurred when processing timestamps with invalid or negative values in the netusage database.

Before: Code attempted to convert invalid timestamps (resulting in year 0 or negative years) without validation
After: Added validation to check for invalid timestamps (starting with '0000') and wrapped timestamp conversions in try-except blocks to catch ValueError and OSError. Invalid timestamps are now set to empty strings

Error Messages Before Fix

ValueError: year 0 is out of range

Files changed:

  • scripts/artifacts/netusage.py

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant