Ticket #1135 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Another Net from Distances bug

Reported by: lanz Owned by: miha
Milestone: 2.6 Component: canvas
Severity: minor Keywords:
Cc: Blocking:
Blocked By:


When Large components only is selected and the widget receives an input (Distances) an error pops up:

  File: OWBaseWidget.py, line 678 in processSignals
  Code: handler(value)
    File: OWNxHist.py, line 107 in setMatrix
    Code: self.generateGraph()
      File: OWNxHist.py, line 258 in generateGraph
      Code: self.pconnected = self.graph.number_of_nodes()
        AttributeError: 'NoneType' object has no attribute 'number_of_nodes' 

I am guessing that because the boundaries are not yet set the graph is None, but the widget tries to do something with it.

Change History

comment:1 Changed 3 years ago by lanz

[d72cef4f468b] provides a quick fix. Please check and close the ticket when it is properly fixed.

comment:2 Changed 3 years ago by miha

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