[tor-bugs] #1780 [Tor - Torctl]: Unknown exceptions caught in TorCtl.Connection.read_routers

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Aug 2 04:00:48 UTC 2010


#1780: Unknown exceptions caught in TorCtl.Connection.read_routers
-------------------+--------------------------------------------------------
 Reporter:  hbock  |        Type:  defect      
   Status:  new    |    Priority:  normal      
Milestone:         |   Component:  Tor - Torctl
  Version:         |    Keywords:              
   Parent:         |  
-------------------+--------------------------------------------------------
 Any exceptions that aren't caught in the try block in
 Connection.read_routers are printed using the traceback module and
 ignored.  This causes problems when an exception occurs every time
 get_router is called (e.g., TorCtlClosed), leading to traceback explosion.

 Patch attached that removes the except: catch-all, as it seems much better
 to just let it unwind to the caller.

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


More information about the tor-bugs mailing list