mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-10-20 00:32:33 +02: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