Make sure error happens if no cookie file is found

This commit is contained in:
Joakim Holm 2023-05-31 19:41:47 +02:00
parent f90cb13bfc
commit 2faa4b747b

View File

@ -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):