mirror of
https://github.com/jo1gi/grawlix.git
synced 2026-06-07 06:54:58 -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)
|
cookie_file = get_cookie_file(options)
|
||||||
if cookie_file:
|
if cookie_file:
|
||||||
source.load_cookies(cookie_file)
|
source.load_cookies(cookie_file)
|
||||||
|
else:
|
||||||
|
raise SourceNotAuthenticated
|
||||||
else:
|
else:
|
||||||
raise SourceNotAuthenticated
|
raise SourceNotAuthenticated
|
||||||
|
|
||||||
@ -108,6 +110,7 @@ async def main() -> None:
|
|||||||
logging.info("")
|
logging.info("")
|
||||||
except GrawlixError as error:
|
except GrawlixError as error:
|
||||||
error.print_error()
|
error.print_error()
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
async def download_with_progress(book: Book, progress: Progress, template: str):
|
async def download_with_progress(book: Book, progress: Progress, template: str):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user