mirror of
https://github.com/jo1gi/grawlix.git
synced 2025-12-23 06:56:24 +00:00
Add traceback in on exception in debug mode
This commit is contained in:
parent
4da73a73e1
commit
40de5bf479
@ -9,6 +9,7 @@ from typing import Tuple, Optional
|
||||
from rich.progress import Progress
|
||||
from functools import partial
|
||||
import asyncio
|
||||
import traceback
|
||||
|
||||
|
||||
def get_login(source: Source, config: Config, options) -> Tuple[str, str, Optional[str]]:
|
||||
@ -89,6 +90,9 @@ async def main() -> None:
|
||||
logging.info("")
|
||||
except GrawlixError as error:
|
||||
error.print_error()
|
||||
if logging.debug_mode:
|
||||
traceback.print_exc()
|
||||
exit(1)
|
||||
|
||||
|
||||
async def download_with_progress(book: Book, progress: Progress, template: str):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user