id

135

title
ZeroDivisionError: float division by zero on jp roster stats
reporter
Xavier Maillard
created
16/04/2016, 19:37
updated
17/04/2016, 11:10
labels
jp
type
bug
status
review
priority
normal
milestone
0.7
severity
normal
body

ll:jp xavier$ jp roster -p xavier stats Total number of contacts: 3 Number of different hosts: 3 Contacts on jabber.fr: 1 (33.3%) Contacts on goffi.org: 1 (33.3%) Contacts on maillard.im: 1 (33.3%) Contacts with no 'from' subscription: 0 Contacts with no 'to' subscription: 0 Contacts with no subscription at all: 0 Total number of groups: 0 Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/dbus/connection.py", line 604, in msg_reply_handler reply_handler(*message.get_args_list(**get_args_opts)) File "/usr/local/lib/python2.7/site-packages/sat_frontends/jp/cmd_roster.py", line 152, in gotContacts print "Average contacts per group: %.1f" % (float(total_group_subscription) / len(unique_groups)) ZeroDivisionError: float division by zero

comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_135

Click to reduce…

fixed in revision 1932 (44342730df66)

Click to expand… Click to reduce…

You are not logged. You need to log in to comment.