Skip to content

Add Error Handling for Invalid Date Formats#17

Merged
swaparup36 merged 2 commits intocyclohexane-2:mainfrom
Debjit00:fix/Invalid_Date_Error
Dec 9, 2025
Merged

Add Error Handling for Invalid Date Formats#17
swaparup36 merged 2 commits intocyclohexane-2:mainfrom
Debjit00:fix/Invalid_Date_Error

Conversation

@Debjit00
Copy link
Contributor

@Debjit00 Debjit00 commented Dec 8, 2025

What’s Changed

Added a try-except block around the date parsing logic
Returns a clear and helpful error message when the format is invalid instead of raising an exception

Outcome

The application now handles invalid user input gracefully, improving stability and user experience.

Please review and merge :D

resolves #1

@swaparup36
Copy link
Contributor

@Debjit00 Please mention the issue here. It will help for further reference.

@Debjit00
Copy link
Contributor Author

Debjit00 commented Dec 9, 2025

@Debjit00 Please mention the issue here. It will help for further reference.

Sure, the issue was "Add Error Handling for Invalid Date Formats".
I had written it on the title of the PR tho.

@swaparup36
Copy link
Contributor

@Debjit00 okay. See this is how you should mention issue on any PR with the id of the issue that the PR resolved. Like here it will be -

#1

Rest LGTM. Thanks!

@swaparup36 swaparup36 merged commit e99c363 into cyclohexane-2:main Dec 9, 2025
@Debjit00
Copy link
Contributor Author

Debjit00 commented Dec 9, 2025

@Debjit00 okay. See this is how you should mention issue on any PR with the id of the issue that the PR resolved. Like here it will be -

#1

Rest LGTM. Thanks!

I see, my bad, I will add it from next time. Thanks for the merge

@Debjit00
Copy link
Contributor Author

Debjit00 commented Dec 9, 2025

Closes #1

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.

Add Error Handling for Invalid Date Formats

2 participants