summaryrefslogtreecommitdiff
path: root/alot/settings/errors.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-07-19 11:21:50 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-07-27 12:57:53 -0700
commit084e37cc9b5148d75f88936a353d5249824a4b60 (patch)
treea862d480f0571f827b63a88c6602840b77096e96 /alot/settings/errors.py
parent2504de648dd6413625387924baaca126eac68016 (diff)
settings/manager: Extend the get_account_by_address with return_default
This new return_default flag (which is an optional and default to False) will try to return the default account if it cannot find an account matching the address hint.
Diffstat (limited to 'alot/settings/errors.py')
-rw-r--r--alot/settings/errors.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/alot/settings/errors.py b/alot/settings/errors.py
index 606f78e1..baf794ff 100644
--- a/alot/settings/errors.py
+++ b/alot/settings/errors.py
@@ -6,3 +6,8 @@
class ConfigError(Exception):
"""could not parse user config"""
pass
+
+
+class NoMatchingAccount(ConfigError):
+ """No account matching requirements found."""
+ pass