Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#2977 closed bug (Fixed)

Fix Stats Plugin Errors

Reported by: Calum Owned by:
Priority: major Milestone: 2.0.0
Component: Plugin Version: develop
Keywords: Cc:

Description

A couple of bugs that need fixing:

On startup with no torrent selected and graph tab open the following error occurs:

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/deluge/plugins/stats/gtkui.py", line 127, in graph_expose
  File "build/bdist.linux-i686/egg/deluge/plugins/stats/graph.py", line 110, in draw_to_context
  File "build/bdist.linux-i686/egg/deluge/plugins/stats/graph.py", line 166, in draw_graph
  File "build/bdist.linux-i686/egg/deluge/plugins/stats/graph.py", line 197, in intervalise
TypeError: unsupported operand type(s) for /: 'long' and 'NoneType'

Secondly due to session stats changes, plugin needs updated:

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/deluge/plugins/stats/gtkui.py", line 127, in graph_expose
  File "build/bdist.linux-i686/egg/deluge/plugins/stats/graph.py", line 110, in draw_to_context
  File "build/bdist.linux-i686/egg/deluge/plugins/stats/graph.py", line 158, in draw_graph
KeyError: u'num_connections'

Change History (2)

comment:1 by Calum, 7 years ago

Resolution: Fixed
Status: newclosed

comment:2 by Calum, 6 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.