summaryrefslogtreecommitdiff
path: root/alot/db/errors.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-31 10:32:36 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-31 10:32:36 +0100
commit999de45bad934654a7b1f1d874d08fbe0922660f (patch)
tree2ce04fe7c0212d398a3c5c0dc6405acaf49e87e2 /alot/db/errors.py
parent50bcdf5aedb336e86278f02b89ac2725f3ea7940 (diff)
buffers/search: fix handling malformed queries
Diffstat (limited to 'alot/db/errors.py')
-rw-r--r--alot/db/errors.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/db/errors.py b/alot/db/errors.py
index bd2564f9..d5fd9f9a 100644
--- a/alot/db/errors.py
+++ b/alot/db/errors.py
@@ -12,6 +12,10 @@ class DatabaseROError(DatabaseError):
"""cannot write to read-only database"""
pass
+class QueryError(DatabaseError):
+ """malformed query"""
+ pass
+
class NonexistantObjectError(DatabaseError):