[tor-bugs] #5953 [Torflow]: Soat NoneType traceback in mime_type

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed May 23 21:02:49 UTC 2012


#5953: Soat NoneType traceback in mime_type
---------------------+------------------------------------------------------
 Reporter:  aagbsn   |          Owner:  aagbsn
     Type:  defect   |         Status:  new   
 Priority:  normal   |      Milestone:        
Component:  Torflow  |        Version:        
 Keywords:           |         Parent:        
   Points:           |   Actualpoints:        
---------------------+------------------------------------------------------
 My exit scanner died with the following traceback.

 {{{
 DEBUG[Tue May 22 18:20:20 2012]:Starting request for:
 http://phys.org/pdf253371830.pdf
 DEBUG[Tue May 22 18:20:21 2012]:Mime type is application/x-download,
 length 7681
 INFO[Tue May 22 18:20:21 2012]:Completed read
 INFO[Tue May 22 18:20:21 2012]:Completed HTTP Reqest for:
 http://phys.org/pdf253371830.pdf
 ERROR[Tue May 22 18:20:21 2012]:An unexpected error occured.
 Traceback (most recent call last):
   File "soat.py", line 2948, in <module>
     main(sys.argv)
   File "soat.py", line 2933, in main
     test.rewind()
   File "soat.py", line 1885, in rewind
     BaseHTTPTest.rewind(self)
   File "soat.py", line 876, in rewind
     map(self.add_target, self.get_targets())
   File "soat.py", line 1918, in get_targets
     urllist.update(map(lambda x: (x, filetype),
 self.get_search_urls_for_filetype(filetype, self.results_per_type)))
   File "soat.py", line 1840, in get_search_urls_for_filetype
     url, success, code, cur_filetype = self.first_load(url,filetype)
   File "soat.py", line 1186, in first_load
     loaded_filetype = mime_to_filetype(req.mime_type)
   File "soat.py", line 1479, in mime_to_filetype
     return mimetypes.guess_extension(mime_type)[1:]
 TypeError: 'NoneType' object is unsubscriptable
 INFO[Tue May 22 18:20:21 2012]:Resetting __LeaveStreamsUnattached=0 and
 FetchUselessDescriptors=1
 }}}

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


More information about the tor-bugs mailing list