ZeroDivisionError: float division by zero on jp roster stats
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