def __repr__(self):
        if len(self.args) == 1:
            if self.args[0] == 1:
                return ('No connection could be opened after 1 '
                        'connection attempt')
            elif isinstance(self.args[0], int):
                return ('No connection could be opened after %s '
                        'connection attempts' % self.args[0])
            else:
                return (self.args[0] % 'No connection could be opened: %s')
        elif len(self.args) == 2:
            return '%s: %s' % (self.args[0], self.args[1])
dataset/ETHPy150Open pika/pika/pika/exceptions.py/AMQPConnectionError.__repr__/swapped operands of `%`