Opened 8 years ago

Closed 8 years ago

#1013 closed defect (fixed)

"info models" gives traceback if attr name incorrect

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

Description

I'm guessing this is because the attribute name I tried doesn't exist.

command: info models attr stick_scale

Traceback (most recent call last):

File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/cmd_line/tool.py", line 205, in execute

cmd.run(cmd_text)

File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2569, in run

result = ci.function(session, kw_args)

File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/list_info/cmd.py", line 79, in info_models

report_models(session.logger, models, attribute)

File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/list_info/util.py", line 64, in report_models

attr, value))

UnboundLocalError: local variable 'value' referenced before assignment

Change History (1)

comment:1 by Conrad Huang, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed in dbc542fc9. Undefined attribute values are now reported as "[undefined]".

Note: See TracTickets for help on using tickets.