#2977: Fix Stats Plugin Errors
--------------------+---------------------------
 Reporter:  Cas     |      Owner:
     Type:  bug     |     Status:  new
 Priority:  major   |  Milestone:  2.0
Component:  Plugin  |    Version:  develop (git)
 Keywords:          |
--------------------+---------------------------
 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'

 }}}

--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2977>
Deluge <http://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to