Opened 9 years ago

Closed 9 years ago

#359 closed defect (fixed)

giving color-cmd target as a single keyword instead of with target option gives traceback

Reported by: Elaine Meng Owned by: Tom Goddard
Priority: major Milestone:
Component: Command Line Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

In the current daily build, using commands like "color pink cartoon" or "color /a red atoms" gives a traceback, whereas "color pink targ c" or "color /a red targ a" don't have this problem. Example traceback:

Traceback (most recent call last):
File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/cmd_line/gui.py", line 167, in execute
cmd.run(cmd_text)
File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/commands/cli.py", line 2194, in run
results.append(ci.function(session, kw_args))
File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/commands/color.py", line 53, in color
if 'r' in target:
TypeError: argument of type 'NoneType' is not iterable

Change History (1)

comment:1 by Tom Goddard, 9 years ago

Resolution: fixed
Status: newclosed

Fixed.

Note: See TracTickets for help on using tickets.