def dispatch_request(self, id):
        super(WalletUnlockedBase, self).dispatch_request(id)
        try:
            unlocked = self.conn.getinfo().unlocked_until
            if not unlocked:
                url = url_for('wallet.wallet_unlock', id=self.wallet.id)
                flash(url % 'Wallet is currently locked. <a href="%s">Unlock</a>',
                      "warning")
        except AttributeError:
            #  Wallet is not encrypted
            pass
dataset/ETHPy150Open nkuttler/flaskwallet/walletapp/views/wallet.py/WalletUnlockedBase.dispatch_request/swapped operands of `%`