summaryrefslogtreecommitdiff
path: root/qutebrowser/config/configexc.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/config/configexc.py')
-rw-r--r--qutebrowser/config/configexc.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/qutebrowser/config/configexc.py b/qutebrowser/config/configexc.py
index 872f777ff..c155510bd 100644
--- a/qutebrowser/config/configexc.py
+++ b/qutebrowser/config/configexc.py
@@ -21,7 +21,7 @@
from typing import Any, Mapping, Optional, Sequence, Union
-import attr
+import dataclasses
from qutebrowser.utils import usertypes, log
@@ -105,7 +105,7 @@ class NoOptionError(Error):
self.option = option
-@attr.s
+@dataclasses.dataclass
class ConfigErrorDesc:
"""A description of an error happening while reading the config.
@@ -116,9 +116,9 @@ class ConfigErrorDesc:
traceback: The formatted traceback of the exception.
"""
- text: str = attr.ib()
- exception: Union[str, Exception] = attr.ib()
- traceback: str = attr.ib(None)
+ text: str
+ exception: Union[str, Exception]
+ traceback: Optional[str] = None
def __str__(self) -> str:
if self.traceback: