diff options
Diffstat (limited to 'qutebrowser/config/configexc.py')
-rw-r--r-- | qutebrowser/config/configexc.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qutebrowser/config/configexc.py b/qutebrowser/config/configexc.py index e08bec913..4d1ab5d7f 100644 --- a/qutebrowser/config/configexc.py +++ b/qutebrowser/config/configexc.py @@ -31,6 +31,15 @@ class Error(Exception): pass +class NoAutoconfigError(Error): + + """Raised when this option can't be set in autoconfig.yml.""" + + def __init__(self, name): + super().__init__("The {} setting can only be set in config.py!" + .format(name)) + + class BackendError(Error): """Raised when this setting is unavailable with the current backend.""" |