Skip to content

fix: replace 5 bare except clauses with except Exception - #2023

Merged
AndreMiras merged 1 commit into
kivy:masterfrom
KeloYuan:fix/bare-except-improvements
May 8, 2026
Merged

fix: replace 5 bare except clauses with except Exception#2023
AndreMiras merged 1 commit into
kivy:masterfrom
KeloYuan:fix/bare-except-improvements

Conversation

@KeloYuan

@KeloYuan KeloYuan commented May 8, 2026

Copy link
Copy Markdown

Replaces 5 bare except: with except Exception: in buildozer/targets/android.py.

Changed: buildozer/targets/android.py
Copilot AI review requested due to automatic review settings May 8, 2026 16:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves error-handling safety in the Android target by replacing 5 bare except: clauses with except Exception: in buildozer/targets/android.py, avoiding accidental suppression of BaseException subclasses (e.g., KeyboardInterrupt, SystemExit) while preserving the existing fallback behaviors.

Changes:

  • Replace a bare exception handler in _sdkmanager proxy parsing with except Exception.
  • Replace bare exception handlers in Windows Java setup, version parsing, build hooks, and project.properties writing with except Exception.
  • Ensure there are no remaining except: occurrences in buildozer/targets/android.py.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AndreMiras
AndreMiras merged commit 0bc74d5 into kivy:master May 8, 2026
29 of 30 checks passed
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.

3 participants