Skip to content

Conversation

@al3rez
Copy link

@al3rez al3rez commented Aug 25, 2025

Summary

  • Added null checking for compat_tool before accessing its is_archive property
  • Prevents AttributeError when compat_tool is None
  • Fixes crashes in the installer dialog when compatibility tool is not properly initialized

Problem

The code assumed compat_tool would always be a valid object with an is_archive property, but in some cases it can be None, leading to AttributeError exceptions that crash the installer dialog.

Solution

Added proper null checking using conditional expression to safely handle cases where compat_tool is None, defaulting to False for the archive check.

Test plan

  • Launch ProtonUp-Qt installer dialog
  • Verify no AttributeError occurs when compat_tool is None
  • Confirm normal archive detection still works for valid compat_tool objects

🤖 Generated with Claude Code

Fix AttributeError when compat_tool is None by adding proper null checking before accessing the is_archive property. This prevents crashes when the compatibility tool object is not properly initialized. The error occurred because the code assumed compat_tool would always be a valid object with an is_archive property, but in some cases it can be None, leading to AttributeError exceptions. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
@al3rez
Copy link
Author

al3rez commented Aug 25, 2025

Closing - incorrect PR description

@al3rez al3rez closed this Aug 25, 2025
@sonic2kk
Copy link
Contributor

For reference, you can edit a Pull Request title and description on GitHub without needing to close the PR. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants