mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Clean up authenticator exceptions
- Renamed to *Error for consistency - Treating AuthError like CrawlError
This commit is contained in:
@ -3,7 +3,7 @@ from typing import Dict, List, Optional
|
||||
|
||||
from rich.markup import escape
|
||||
|
||||
from .auth import AUTHENTICATORS, Authenticator
|
||||
from .auth import AUTHENTICATORS, Authenticator, AuthError
|
||||
from .config import Config, ConfigOptionError
|
||||
from .crawl import CRAWLERS, Crawler, CrawlError, KitIliasWebCrawler
|
||||
from .logging import log
|
||||
@ -117,7 +117,7 @@ class Pferd:
|
||||
|
||||
try:
|
||||
await crawler.run()
|
||||
except CrawlError as e:
|
||||
except (CrawlError, AuthError) as e:
|
||||
log.error(str(e))
|
||||
except Exception:
|
||||
log.unexpected_exception()
|
||||
|
Reference in New Issue
Block a user