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

Create README.md #25

Merged
merged 12 commits into from
Mar 13, 2025
Prev Previous commit
Removed redundant code from change_dump_date
atteggiani committed Mar 13, 2025
commit 6ce9c2eb0075a16af1d5d9c0e760130836c729c9
4 changes: 0 additions & 4 deletions src/umfile_utils/change_dump_date.py
Original file line number Diff line number Diff line change
@@ -49,10 +49,6 @@ def validate_date_value(value):
"""
Ensures the date is in YYYYMMDD format and extract year, month, and day.
"""
try:
ivalue = int(value)
except ValueError:
raise argparse.ArgumentTypeError(f"Invalid date: {value}. Must be in YYYYMMDD format.")
if len(value) != 8:
raise argparse.ArgumentTypeError(f"Invalid date: {value}. Must be exactly 8 digits (YYYYMMDD).")
year = validate_year_value(value[:4])