Opened 7 years ago

Closed 21 months ago

#5953 closed defect (wontfix)

Soat NoneType traceback in mime_type

Reported by: aagbsn Owned by: aagbsn
Priority: Medium Milestone:
Component: Core Tor/Torflow Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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

Child Tickets

Change History (1)

comment:1 Changed 21 months ago by tom

Resolution: wontfix
Status: newclosed

ExitAuthority is not maintained anymore

Note: See TracTickets for help on using tickets.