Opened 8 years ago

Closed 3 years 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:


My exit scanner died with the following traceback.

DEBUG[Tue May 22 18:20:20 2012]:Starting request for:
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:
ERROR[Tue May 22 18:20:21 2012]:An unexpected error occured.
Traceback (most recent call last):
  File "", line 2948, in <module>
  File "", line 2933, in main
  File "", line 1885, in rewind
  File "", line 876, in rewind
    map(self.add_target, self.get_targets())
  File "", line 1918, in get_targets
    urllist.update(map(lambda x: (x, filetype), self.get_search_urls_for_filetype(filetype, self.results_per_type)))
  File "", line 1840, in get_search_urls_for_filetype
    url, success, code, cur_filetype = self.first_load(url,filetype)
  File "", line 1186, in first_load
    loaded_filetype = mime_to_filetype(req.mime_type)
  File "", 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 3 years ago by tom

Resolution: wontfix
Status: newclosed

ExitAuthority is not maintained anymore

Note: See TracTickets for help on using tickets.