Page MenuHome

Report Bug button is Bugged (Python version bump issue)
Closed, ResolvedPublic

Description

Open the Help menu where the Report Bug button is supposed to live:

Python: Traceback (most recent call last):
  File "/media/data/blender_guest/cmake_release/bin/3.2/scripts/startup/bl_ui/space_topbar.py", line 692, in draw
    ).type = 'API'
AttributeError: 'WM_OT_url_open' object has no attribute 'type'

This error is odd, because that operator does in fact have a type EnumProperty annotation. I assume the new Python version doesn't like the fact that type is a Python built-in keyword. I wanted to submit a patch to fix this case, but there are probably a hundred other cases like this, and maybe a more robust solution would be needed, as well as adding a note to the wiki that python keywords are no longer allowed as operator parameter names.

Event Timeline

Omar Emara (OmarSquircleArt) changed the task status from Needs Triage to Confirmed.EditedFeb 24 2022, 4:57 PM

WM_OT_url_open doesn't have a type member, WM_OT_url_open_preset does have that member. So that is probably a typo that was introduced in rB86fc63c4ca9d36eae7512c5c3e640285d84415d1.
@Aaron Carlisle (Blendify), can you take a look?