From 5b827cf86ad2d3e1f307fd4920f9768eeaf70745 Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Tue, 6 Jun 2017 21:40:17 -0400 Subject: [PATCH] Fix typo in sql exception handling --- qutebrowser/misc/sql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/misc/sql.py b/qutebrowser/misc/sql.py index b7e180a24..416229ae8 100644 --- a/qutebrowser/misc/sql.py +++ b/qutebrowser/misc/sql.py @@ -81,8 +81,8 @@ class Query(QSqlQuery): self.addBindValue(val) log.sql.debug('self bindings: {}'.format(self.boundValues())) if not self.exec_(): - raise SqlException('Failed to exec self "{}": "{}"'.format( - self.lastself(), self.lastError().text())) + raise SqlException('Failed to exec query "{}": "{}"'.format( + self.lastQuery(), self.lastError().text())) def value(self): """Return the result of a single-value query (e.g. an EXISTS)."""