verixx 542924d5df Fixed a zero division error when accessing latencies
When accessing the latencies property on an AutoShardedClient when none of shards are ready, we get a ZeroDivisionError. An example of this can be seen here.
```py
class StatsBot(commands.AutoShardedBot):
    def __init__(self):
        super().__init__(command_prefix=None)
        self._add_commands()

    def _add_commands(self):
        '''Adds commands automatically'''
        for name, attr in inspect.getmembers(self):
            if isinstance(attr, commands.Command):
                self.add_command(attr)
```

When iterating through this custom client's it accesses the latencies property when no shards are ready, therefore it raises the error. A quick fix for this would be to return None if no shards are ready.
2017-11-12 16:58:30 -05:00
..
2016-05-06 12:23:24 -04:00
2017-08-21 01:57:07 -04:00
2017-07-04 23:16:16 +03:00
2017-10-02 13:38:05 -07:00
2017-08-29 15:48:10 -04:00
2017-09-13 09:44:36 -04:00
2017-08-21 01:57:07 -04:00
2017-08-21 02:49:49 -04:00
2017-10-14 21:19:46 -04:00
2017-10-24 00:50:20 -04:00
2017-09-04 20:03:07 -04:00
2017-01-20 23:19:19 -05:00
2017-08-09 18:39:32 -04:00
2017-01-20 23:19:19 -05:00
2017-09-13 09:44:36 -04:00
2017-11-12 16:58:28 -05:00
2017-10-04 21:27:31 -07:00
2017-11-07 05:36:55 -05:00