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

temporal: Fix bare except clauses in datetime_math.py #4949

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

arohanajit
Copy link
Contributor

This PR addresses flake8 E722 warnings by replacing bare except clauses with specific exception handling in the datetime_math.py module.

  • Replace bare except after dateutil import with explicit (ImportError, ModuleNotFoundError)
  • Replace bare except in datetime parsing with explicit (ValueError, TypeError)

Arohan Ajit added 2 commits January 14, 2025 15:02
@github-actions github-actions bot added Python Related code is in Python libraries labels Jan 14, 2025
@echoix echoix merged commit 4af7d72 into OSGeo:main Jan 14, 2025
27 checks passed
@github-actions github-actions bot added this to the 8.5.0 milestone Jan 14, 2025
nilason pushed a commit to nilason/grass that referenced this pull request Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants