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

wxGUI: Add specific exception handling in vdigit/mapwindow.py #4952

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

arohanajit
Copy link
Contributor

Updates exception handling in several methods to catch specific error cases:

  1. AttributeError in layer access operations (GetLayer().GetName()):

    • Occurs when toolbar or layer is None
  2. IndexError in undo operation:

    • IndexError: Occurs when trying to pop from empty polycoords list (e.g., multiple undo attempts)

@github-actions github-actions bot added GUI wxGUI related Python Related code is in Python labels Jan 15, 2025
@petrasovaa petrasovaa added this to the 8.5.0 milestone Jan 15, 2025
@petrasovaa petrasovaa enabled auto-merge (squash) January 15, 2025 22:31
@petrasovaa petrasovaa merged commit 05b087f into OSGeo:main Jan 16, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI wxGUI related Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants