diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-07-19 11:21:50 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-07-27 12:57:53 -0700 |
commit | 084e37cc9b5148d75f88936a353d5249824a4b60 (patch) | |
tree | a862d480f0571f827b63a88c6602840b77096e96 /alot/settings/errors.py | |
parent | 2504de648dd6413625387924baaca126eac68016 (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.py | 5 |
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 |