Bug 781220 - mhsh exception when running "show selection"
Summary: mhsh exception when running "show selection"
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Matahari
Classification: Retired
Component: matahari
Version: 0.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Zane Bitter
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-13 01:46 UTC by Russell Bryant
Modified: 2016-04-26 23:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-17 12:30:17 UTC


Attachments (Terms of Use)

Description Russell Bryant 2012-01-13 01:46:03 UTC
Using "show selection" before selecting anything raises a Python exception:

$ mhsh
mhsh> show selection 
% 'NoneType' object is not iterable

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/matahari/shell/interpreter/interpreter.py", line 81, in onecmd
    return cmd.Cmd.onecmd(self, line)
  File "/usr/lib64/python2.7/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.7/site-packages/matahari/shell/interpreter/command.py", line 191, in __call__
    return self.do(*args)
  File "/usr/lib/python2.7/site-packages/matahari/shell/mode.py", line 77, in show_selection
    self.writelist(self.state.objects)
  File "/usr/lib/python2.7/site-packages/matahari/shell/mode.py", line 49, in writelist
    self.write(*[str(o) for o in objects])
TypeError: 'NoneType' object is not iterable

Comment 1 Zane Bitter 2012-01-13 09:21:56 UTC
Already fixed upstream :)
https://github.com/matahari/matahari/commit/e709a65f07af195347193b43aacdd0539763dc97


Note You need to log in before you can comment on or make changes to this bug.