Clean up authenticator exceptions

- Renamed to *Error for consistency
- Treating AuthError like CrawlError
This commit is contained in:
Joscha
2021-05-25 14:21:12 +02:00
parent c15a1aecdf
commit 22c2259adb
6 changed files with 19 additions and 19 deletions

View File

@ -6,7 +6,7 @@ from ..config import Config
from ..logging import log
from ..utils import agetpass
from ..version import NAME
from .authenticator import Authenticator, AuthException, AuthSection
from .authenticator import Authenticator, AuthError, AuthSection
class KeyringAuthSection(AuthSection):
@ -53,4 +53,4 @@ class KeyringAuthenticator(Authenticator):
self.invalidate_password()
def invalidate_password(self) -> None:
raise AuthException("Invalid password")
raise AuthError("Invalid password")