[tor-bugs] #3128 [arm]: "AttributeError: 'NoneType' object has no attribute 'getDetails'" by trying to select a connection, when there are no connections

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun May 8 23:07:04 UTC 2011


#3128: "AttributeError: 'NoneType' object has no attribute 'getDetails'" by trying
to select a connection, when there are no connections
--------------------+-------------------------------------------------------
 Reporter:  asn     |          Owner:  atagar
     Type:  defect  |         Status:  new   
 Priority:  normal  |      Milestone:        
Component:  arm     |        Version:        
 Keywords:          |         Parent:        
   Points:          |   Actualpoints:        
--------------------+-------------------------------------------------------
 Hi,

 if the connection tab is empty (for example, when bootstrapping a new
 relay) and I press "Enter" inside it, arm crashes and I get this trace:

 Traceback (most recent call last):
   File "./src/starter.py", line 398, in <module>
     cli.controller.startTorMonitor(time.time() - initTime, expandedEvents,
 param["startup.blindModeEnabled"])
   File "/home/user/arm/src/cli/controller.py", line 1441, in
 startTorMonitor
     curses.wrapper(drawTorMonitor, startTime, loggedEvents, isBlindMode)
   File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
     return func(stdscr, *args, **kwds)
   File "/home/user/arm/src/cli/controller.py", line 1429, in
 drawTorMonitor
     panels["conn"].handleKey(key)
   File "/home/user/arm/src/cli/connections/connPanel.py", line 153, in
 handleKey
     self.redraw(True)
   File "/home/user/arm/src/util/panel.py", line 355, in redraw
     self.draw(self.maxX - 1, self.maxY)
   File "/home/user/arm/src/cli/connections/connPanel.py", line 231, in
 draw
     drawEntries = cursorSelection.getDetails(width)
 AttributeError: 'NoneType' object has no attribute 'getDetails'
 Exception in thread Thread-1 (most likely raised during interpreter
 shutdown):
 Traceback (most recent call last):
   File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
   File "/home/user/arm/src/util/connections.py", line 457, in run
   File "/usr/lib/python2.5/threading.py", line 115, in release
 <type 'exceptions.TypeError'>: 'NoneType' object is not callable
 Exception in thread conn (most likely raised during interpreter shutdown):
 Traceback (most recent call last):
   File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
   File "/home/user/arm/src/cli/connections/connPanel.py", line 187, in run
   File "/usr/lib/python2.5/threading.py", line 115, in release
 <type 'exceptions.TypeError'>: 'NoneType' object is not callable
 Exception in thread header (most likely raised during interpreter
 shutdown):
 Traceback (most recent call last):
   File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
   File "/home/user/arm/src/cli/headerPanel.py", line 286, in run
   File "/usr/lib/python2.5/threading.py", line 115, in release
 <type 'exceptions.TypeError'>: 'NoneType' object is not callable

 It's nothing important but I felt like I should report it.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3128>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list