Ticket #1355 (closed bug: fixed)

Opened 3 months ago

Last modified 3 months ago

Gene Info - Report chrashes

Reported by: blaz Owned by: ales
Milestone: 2.6 Component: addon/bioinformatics
Severity: minor Keywords:
Cc: Blocking:
Blocked By:

Description

Clicking on report button in Gene Info widget crashes.

--------------------------------------------------------------------------------
TypeError                                     Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/OWWidget.py", line 178, in reportAndFinish
    self.sendReport()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/orangecontrib/bio/widgets/OWGeneInfo.py", line 602, in sendReport
    self.reportRaw("<p>Input: %i genes of which %i (%.1f%%) matched NCBI synonyms<br>Organism: %s<br>Filter: %s</p>" % (genes, matched, 100.0 * matched / genes, obiTaxonomy.name(org), self.searchString))
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/orangecontrib/bio/obiTaxonomy.py", line 134, in f
    res = func(*args, **kwargs)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/orangecontrib/bio/obiTaxonomy.py", line 363, in name
    return Taxonomy()[taxid]
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/orangecontrib/bio/obiTaxonomy.py", line 277, in __getitem__
    entry = self.get_entry(id)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/orangecontrib/bio/obiTaxonomy.py", line 262, in get_entry
    entry = self._text[id]
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/orangecontrib/bio/obiTaxonomy.py", line 225, in __getitem__
    entry = self.get_entry(id)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/orangecontrib/bio/obiTaxonomy.py", line 149, in f
    self._cache[arg] = func(self, arg)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/orangecontrib/bio/obiTaxonomy.py", line 200, in get_entry
    index = self._find_all(self.entry_start_string + id + self.entry_separator_string).next()
TypeError: cannot concatenate 'str' and 'NoneType' objects

Change History

comment:1 Changed 3 months ago by ales

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.