def handle_noargs(self, **options):
        logger.info('Initializing storage')
        storage = DistributedStorage()
        retries = retry_storage.all()
        logger.info(len(retries) % 'Retries to process: %s')
        for retry in retries:
            logger.info('Retry: %s' % _to_unicode(retry))
            try:
                if retry['operation'] == 'put':
                    body = storage.transport.get(retry['source_host'], retry['filename'])
                    storage.transport.put(retry['target_host'], retry['filename'], body)
                if retry['operation'] == 'delete':
                    storage.transport.delete(retry['target_host'], retry['filename'])
                retry_storage.delete(retry)
            except (socket.error, HTTPError), e:
                logger.warning('Retry <%s> not processed: %s' % (_to_unicode(retry), e))
                pass
        logger.info('Done processing retries. Remaning: %s' % retry_storage.count())
dataset/ETHPy150Open isagalaev/django_dust/django_dust/management/commands/process_failed_media.py/Command.handle_noargs/swapped operands of `%`