def list_devices(self, number):
        if number:
            try:
                number = number.strip()
                number = int(number)
            except __HOLE__:
                text = '{} is not a number, now is it. You see, it needs to be.'.format(number)
                return text
        devices = self.device.list()
        if number:
            devices_trunc = devices[:number]
        else:
            devices_trunc = devices[:5]

        return self._format_devices(devices_trunc)
dataset/ETHPy150Open serverdensity/sdbot/limbo/plugins/devices.py/Wrapper.list_devices