Open glensc opened 3 years ago
This code throws JSONDecodeError
JSONDecodeError
trakt.init(client_id='', client_secret='', store=True)
this library should catch and re-throw as an exception owned by this library.
so applications using this library can do "catch all trakt exceptions":
client_id = click.prompt(PROMPT_TRAKT_CLIENT_ID, type=str) client_secret = click.prompt(PROMPT_TRAKT_CLIENT_SECRET, type=str) try: return trakt.init(client_id=client_id, client_secret=client_secret, store=True) except TraktException as e: click.echo(error(f"Log in to Trakt failed: {e}, Try again."))
Merged in my fork:
This code throws
JSONDecodeError
this library should catch and re-throw as an exception owned by this library.
so applications using this library can do "catch all trakt exceptions":