Opened 4 years ago

Closed 4 years ago

#4607 closed defect (fixed)

_name_completion() can return None

Reported by: chimerax-bug-report@… Owned by: Greg Couch
Priority: normal Milestone: 1.2
Component: Command Line Version:
Keywords: Cc: pet
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        macOS-10.13.6-x86_64-i386-64bit
ChimeraX Version: 1.2.1 (2021-05-05 02:17:36 UTC)
Description
Other color palettes worked fine but when I applied the ylgnbu-3 and at least one other palette near it in the list in "Color Key" it threw this error:

TypeError: object of type 'NoneType' has no len()

File "/private/var/folders/b7/_py3282j25lfqnk58zh4f0rw0000gn/T/AppTranslocation/1E0836A0-2DBF-44B2-8496-35920D9D510D/d/ChimeraX-1.2.1.app/Contents/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/chimerax/core/commands/colorarg.py", line 346, in find_named_color
if len(choices) == 0:

Change History (2)

comment:1 by pett, 4 years ago

Component: UnassignedCommand Line
Milestone: 1.2
Owner: set to Greg Couch
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submission_name_completion() can return None

comment:2 by Greg Couch, 4 years ago

Cc: pet added
Resolution: fixed
Status: assignedclosed

Reproducible with command color ylb. Added test case.

Note: See TracTickets for help on using tickets.