mirror of
https://github.com/jo1gi/grawlix.git
synced 2026-04-07 17:21:28 -06:00
Make sure error happens if no cookie file is found
This commit is contained in:
parent
f90cb13bfc
commit
2faa4b747b
@ -80,6 +80,8 @@ async def authenticate(source: Source, config: Config, options):
|
||||
cookie_file = get_cookie_file(options)
|
||||
if cookie_file:
|
||||
source.load_cookies(cookie_file)
|
||||
else:
|
||||
raise SourceNotAuthenticated
|
||||
else:
|
||||
raise SourceNotAuthenticated
|
||||
|
||||
@ -108,6 +110,7 @@ async def main() -> None:
|
||||
logging.info("")
|
||||
except GrawlixError as error:
|
||||
error.print_error()
|
||||
exit(1)
|
||||
|
||||
|
||||
async def download_with_progress(book: Book, progress: Progress, template: str):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user